#!/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-proxy odkbuild
}

stop() {
	/usr/bin/docker stop odkbuild
}
