A TheThingsNetwork monitor implemented with Eclipse Scout
Disclaimer: The description below has been tested on a Windows box only.
start docker using the quickstart terminal open a shell and configure it for docker (using bash shell for the examples below)
eval $(docker-machine env default --shell bash)
cd <path to your local git repo>/ttn_monitor/org.thethingsnetwork.zrh.monitor.ui.html.app.dev
mvn clean package docker:build
for more infos see the spotify docs.
docker images
docker run --name ttn -p 8085:8080 -d eclipsescout/org.thethingsnetwork.zrh.monitor:latest
--name: assignes a name (can later be used to stop/restart/... this container)
-p: maps the container internal port 8080 to the externally visible port 8085
-d: runs the container in demon mode
docker-machine ls
produces an output similar to the one below
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://<container-ip-address>:2376 v1.9.1
<container-ip-address>:8085/ttn-monitor
Enter the above address in your browser, you should then see the application
docker exec -it ttn bash
This will open a shell inside the ttn container. In this shell you can then look around the container
ls -lart logs/
exit
docker login --username=eclipsescout --email=scout@bsi-software.com https://index.docker.io/v1/
docker push eclipsescout/org.thethingsnetwork.zrh.monitor
Then verify, the image is available on Dockerhub via the link below
https://hub.docker.com/r/eclipsescout/org.thethingsnetwork.zrh.monitor/
docker logout
docker stop ttn
docker rm ttn
docker rmi eclipsescout/org.thethingsnetwork.zrh.monitor:latest
In case of docker login issues there might be a problem with the default index registry, see the hints provided on Stackoverflow
At times changes of the app don't make it into the docker image. In this case, there might be some old jars cached. Things to try: