Docker image details
Firstly check the Dockerfile the server uses.
Here are some details of Dockerfile:
- Install azul openjdk at /opt/java8
- Use Supervisord to control our Java and Nginx processes.
- Java/Nginx worker processes run as user 'admin'
- The app fat jar location is /home/admin/app.jar
- The log location is
/home/admin/logs/holoinsight-server/ - The front-end resources location is
/home/admin/holoinsight-server-static/ alias g="cd /home/admin/logs/holoinsight-server/"- The helper scripts location is
/home/admin/logs/api/which is a soft link to/home/admin/api/. Considering that most of the time We will be in the/home/admin/logs/holoinsight-server/directory (using command 'g'), We put the api directory here and use syntaxsh ../api/basic/versionrefers to them - Alias sc to
supervisorctl(check/usr/local/bin/sc). So usescorsc statusto check app running status, usesc start/stop/restart appto control the app process. There are some helper scripts based onscin/home/admin/bin/.