Requirements: Linux host with git and docker
git clone git@github.com:jpzk/tracking-service.git cd tracking-service docker build -t trackingservice . docker run -i --name trackingservicec -v /var/data/tracking:/var/data/tracking -p 8888:8888 -p 9990:9990 -t trackingservice
The API endpoint is served on container port 8888 and on the host system it is 80. The API endpoint is served on container port 9990 and on the host system it is 81.
Now we only need to start the finatra service by
java -jar /trackingservice/tracking-api.jar &
Use the client in example-cpuusage-api/client/generator.py to send requests to API which runs on port 80.