29 lines
687 B
Plaintext
Executable File
29 lines
687 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="OpenDataKit Aggregate docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name opendatakit \
|
|
-h opendatakit \
|
|
--link postfix \
|
|
--link postgres \
|
|
-v /srv/opendatakit/conf/server.xml:/srv/tomcat/conf/server.xml \
|
|
-v /srv/opendatakit/conf/jdbc.properties:/srv/tomcat/webapps/aggregate/WEB-INF/classes/jdbc.properties \
|
|
-v /srv/opendatakit/conf/security.properties:/srv/tomcat/webapps/aggregate/WEB-INF/classes/security.properties \
|
|
opendatakit
|
|
}
|
|
|
|
start_post() {
|
|
/usr/local/bin/spotter-appmgr update-hosts opendatakit
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop opendatakit
|
|
}
|