2018-01-24 15:18:55 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Ushahidi docker container"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need docker net
|
|
|
|
use dns logger netmount
|
|
|
|
after mariadb
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name ushahidi \
|
|
|
|
-h ushahidi \
|
|
|
|
--link mariadb \
|
2018-02-01 14:55:24 +01:00
|
|
|
-p 127.0.0.1:8014:8014 \
|
2018-01-27 14:35:16 +01:00
|
|
|
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
2018-02-02 20:16:26 +01:00
|
|
|
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
|
2018-01-27 14:08:19 +01:00
|
|
|
ushahidi
|
2018-01-24 15:18:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop ushahidi
|
|
|
|
}
|