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

30 lines
578 B
Plaintext
Executable File

#!/sbin/openrc-run
description="OpenDataKit Build docker container"
depend() {
need docker postgres
}
start() {
/usr/bin/docker run -d --rm \
--name opendatakit-build \
-h opendatakit-build \
--link postgres \
-v /etc/ssl/services.pem:/usr/local/share/ca-certificates/services.crt \
-v /srv/opendatakit-build/conf/config.yml:/srv/opendatakit-build/config.yml \
opendatakit-build
}
start_post() {
/usr/bin/vmmgr register-proxy opendatakit-build
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy opendatakit-build
}
stop() {
/usr/bin/docker stop opendatakit-build
}