Spotter-VM/opendatakit-build/etc/init.d/opendatakit-build

26 lines
470 B
Plaintext
Executable File

#!/sbin/openrc-run
description="OpenDataKit Build docker container"
depend() {
need docker net postgres
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm \
--name opendatakit-build \
-h opendatakit-build \
--link postgres \
-v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml \
opendatakit-build
}
start_post() {
/usr/local/bin/spotter-appmgr update-hosts opendatakit-build
}
stop() {
/usr/bin/docker stop opendatakit-build
}