#!/sbin/openrc-run

description="CTS docker container"

depend() {
	need docker net postgres
	use dns logger netmount
}

start() {
	/usr/bin/docker run -d --rm \
	--name cts \
	-h cts \
	--link postgres \
	-v /srv/cts/conf:/srv/cts/cts/settings \
	cts
}

start_post() {
	/usr/local/bin/spotter-appmgr update-proxy cts
}

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