26 lines
416 B
Plaintext
Executable File
26 lines
416 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 odkbuild \
|
|
-h odkbuild \
|
|
--link postgres \
|
|
-v /srv/odkbuild/conf/config.yml:/srv/odkbuild/config.yml \
|
|
odkbuild
|
|
}
|
|
|
|
start_post() {
|
|
/usr/local/bin/spotter-appmgr update-hosts odkbuild
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop odkbuild
|
|
}
|