Revision de4a40f1fd11f8410ed141221b3a992106b0f8b0 authored by victoroicr on 20 November 2015, 20:38:22 UTC, committed by victoroicr on 20 November 2015, 20:38:22 UTC
1 parent 34d8ced
docker-entrypoint.sh
#!/bin/sh
# Note: I've written this using sh so it works in the busybox container too
# USE the trap if you need to also do manual cleanup after the service is stopped,
# or need to start multiple services in the one container
trap "echo TRAPed signal" HUP INT QUIT KILL TERM
# start service in background here
#/usr/sbin/apachectl start
# the entrypoint provided by the base Postgres container
echo "Starting Postgres"
bash /docker-entrypoint.sh postgres &
sleep 30
# todo put the web service startup here
echo "Starting Java Web Service"
/usr/lib/jvm/java-8-oracle/bin/java -jar /gitroot/dockstore-webservice/target/dockstore-webservice-*.jar server /dockstore.yml
#echo "[hit enter key to exit] or run 'docker stop <container>'"
#read
# stop service and clean up here
#echo "stopping postgres"
#/usr/sbin/apachectl stop
# not sure if this is right
#gosu postgres pg_ctl -D "$PGDATA" -m fast -w stop
#pkill java
#echo "exited $0"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...