29 lines
522 B
Plaintext
Executable File
29 lines
522 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 /srv/opendatakit-build/conf/config.yml:/srv/opendatakit-build/config.yml \
|
|
opendatakit-build
|
|
}
|
|
|
|
start_post() {
|
|
/usr/bin/spotter-appmgr register-proxy opendatakit-build
|
|
}
|
|
|
|
stop_pre() {
|
|
/usr/bin/spotter-appmgr unregister-proxy opendatakit-build
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop opendatakit-build
|
|
}
|