2017-12-20 15:41:29 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="CKAN DataPusher docker container"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need docker net
|
|
|
|
use dns logger netmount
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name ckan-datapusher \
|
|
|
|
-h ckan-datapusher \
|
|
|
|
-v /srv/ckan-datapusher/conf:/etc/ckan-datapusher \
|
|
|
|
-v /srv/ckan-datapusher/data:/srv/ckan-datapusher/data \
|
|
|
|
ckan-datapusher
|
2017-12-20 15:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2018-02-03 17:34:24 +01:00
|
|
|
/usr/bin/docker stop ckan-datapusher
|
2017-12-20 15:41:29 +01:00
|
|
|
}
|