2017-12-26 09:33:47 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="CTS docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-02-03 17:34:24 +01:00
|
|
|
need docker net postgres
|
2017-12-26 09:33:47 +01:00
|
|
|
use dns logger netmount
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name cts \
|
|
|
|
-h cts \
|
|
|
|
--link postgres \
|
2018-02-01 14:55:24 +01:00
|
|
|
-p 127.0.0.1:8006:8006 \
|
2018-01-27 14:08:19 +01:00
|
|
|
-v /srv/cts/conf:/srv/cts/cts/settings \
|
|
|
|
cts
|
2017-12-26 09:33:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop cts
|
|
|
|
}
|