Spring App API for Sensor Data
We build docker container images to run using docker-compose
To build the container
- Build the jar file by running the "greenhouse - sensor_data_api - clean install" Eclipse Launch File
- Open terminal inside the workspace root directory (it contains the Dockerfile)
- Build docker image (You will need docker installed on your computer)
docker build --build-arg APP_PORT=8732 --build-arg WAR_FILE=target/sensor_data_api-1.0.0.war -t tcrokicki/ptk-greenhouse-server-sensor_data_api:v1.0.0 .
- Push to Docker Hub when ready for release
docker push tcrokicki/ptk-greenhouse-server-sensor_data_api:v1.0.0
docker login --username USERNAME
docker run --env xxx='zzzz' greenhouse-server-data_collection_api:1.0.0