Disassembler f436a00223
Fix OpenDataKit URL confusion once more, related to #226 and others
- Partially revert commit 955a178
 - Move ODK Build to port 8x17
2018-03-17 16:43:37 +01:00

31 lines
713 B
Plaintext
Executable File

#!/sbin/openrc-run
description="OpenDataKit Aggregate docker container"
depend() {
need docker net postgres
use dns logger netmount postfix
}
start_pre() {
/srv/opendatakit/update-ip.sh
}
start() {
/usr/bin/docker run -d --rm \
--name opendatakit \
-h opendatakit \
--link postfix \
--link postgres \
-p 127.0.0.1:8015:8015 \
-p 127.0.0.1:8016:8016 \
-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
}
stop() {
/usr/bin/docker stop opendatakit
}