Giter Site home page Giter Site logo

sia's Introduction

sia

Agricultural Information System

SIA is an open Agricultural Information System.

Its objective is to bring to the agricultural world 3 main things:

  1. Information System: A J2EE server to gather, process and offer information.
  2. Internet Of the things: An ubiquitous network made with open source sensors and actuators.
  3. Extensible Architecture: An infrastructure that allows connect new functionalities

SIA Architecture

The information system (called SIA) is hosted in this repository. It's a web application created using the standards of the current J2EE world: Spring, MVC, Maven, jUnit, Hibernate.

The information processed could come from legacy data, input manually or gathered by the IoT network, an offers its services through API build ubiquitous in low-energy systems (Raspberry and Arduino). It’s build in Node.js and hosted in the project SIAREST.

About the extensible architecture, it’s an aspect that covers all the system, everything is designed to attach new components and extend the usability dynamically.

SIA Dasbhoard Controller

Alias

mvn test
mvn integration-test
mvn install
mvn tomcat7:run
#Initialize
mvn exec:java -Dexec.mainClass=org.sysreg.sia.model.InitializeDatabase

Deploy

RaspberryPi2

#JDK
docker build -t joherma1/rpi-java:7-jdk deploy/java/.
#Database
docker build -t joherma1/rpi-postgres deploy/postgres/.
#SIA
docker build -t joherma1/rpi-sia .

docker run -p 5432:5432 -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia --name postgres-sia -d joherma1/rpi-postgres

docker run -p 8888:8080 -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia --name sia --link postgres-sia:postgres -d joherma1/rpi-sia

#Test SIA image
docker run -i --link postgres_sia_test:postgres --rm -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia joherma1/rpi-sia /bin/bash -c 'cd /opt/sia; mvn exec:java -Dexec.mainClass=org.sysreg.sia.model.InitializeDatabase'
docker run -i --link postgres_sia_test:postgres --rm -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia joherma1/rpi-sia /bin/bash -c 'cd /opt/sia; mvn integration-test'

x86_64

docker pull postgres
docker build -t joherma1/sia .

docker run -p 5432:5432 -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia --name postgres-sia -d postgres

docker run -p 8080:8080 -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia --name sia --link postgres-sia:postgres -d joherma1/sia
#Test SIA image
docker run -i --link postgres_sia_test:postgres --rm -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia joherma1/rpi-sia /bin/bash -c 'cd /opt/sia; mvn exec:java -Dexec.mainClass=org.sysreg.sia.model.InitializeDatabase'
docker run -i --link postgres_sia_test:postgres --rm -e POSTGRES_PASSWORD=agricultura.1 -e POSTGRES_USER=sia -e POSTGRES_SCHEMA=sia joherma1/rpi-sia /bin/bash -c 'cd /opt/sia; mvn integration-test'

PostgreSQL How to use this image start a postgres instance

docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres --name postgres-arm -d postgres

Usage:

docker run -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_SCHEMA=postgres --link postgres:postgres -d you_app

sia's People

Contributors

joherma1 avatar joseantoniohernandez avatar rajibmitra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.