2018-01-19 20:32:16 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Mifos X docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-02-03 17:34:24 +01:00
|
|
|
need docker net mariadb
|
2018-02-03 12:59:09 +01:00
|
|
|
use dns logger netmount postfix
|
2018-01-19 20:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name mifosx \
|
|
|
|
-h mifosx \
|
|
|
|
--link mariadb \
|
2018-02-03 12:59:09 +01:00
|
|
|
--link postfix \
|
2018-03-26 13:36:48 +02:00
|
|
|
-v /srv/mifosx/conf/server.xml:/srv/tomcat/conf/server.xml \
|
2018-01-27 14:25:41 +01:00
|
|
|
-v /srv/mifosx/conf/context.xml:/srv/tomcat/webapps/fineract-provider/META-INF/context.xml \
|
2018-01-27 14:08:19 +01:00
|
|
|
mifosx
|
2018-01-19 20:32:16 +01:00
|
|
|
}
|
|
|
|
|
2018-03-26 13:36:48 +02:00
|
|
|
start_post() {
|
2018-03-26 21:12:48 +02:00
|
|
|
/usr/local/bin/spotter-appmgr update-proxy mifosx
|
2018-03-26 13:36:48 +02:00
|
|
|
}
|
|
|
|
|
2018-01-19 20:32:16 +01:00
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop mifosx
|
|
|
|
}
|