32 lines
598 B
Plaintext
Executable File
32 lines
598 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Ushahidi docker container"
|
|
|
|
depend() {
|
|
need docker mariadb postfix
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name ushahidi \
|
|
-h ushahidi \
|
|
--link mariadb \
|
|
--link postfix \
|
|
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
|
-v /srv/ushahidi/conf/config.json:/srv/ushahidi/config.json \
|
|
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
|
|
ushahidi
|
|
}
|
|
|
|
start_post() {
|
|
/usr/bin/spotter-appmgr register-proxy ushahidi
|
|
}
|
|
|
|
stop_pre() {
|
|
/usr/bin/spotter-appmgr unregister-proxy ushahidi
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop ushahidi
|
|
}
|