31 lines
706 B
Plaintext
Executable File
31 lines
706 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Sahana Eden Development docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount postfix
|
|
}
|
|
|
|
start_pre() {
|
|
/srv/sahana-demo/update-ip.sh
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name sahana-demo \
|
|
-h sahana-demo \
|
|
--link postfix \
|
|
--link postgres \
|
|
-p 127.0.0.1:8098:8001 \
|
|
-v /srv/sahana-demo/conf:/srv/web2py/applications/eden/models \
|
|
-v /srv/sahana-demo/data/default:/srv/web2py/applications/eden/modules/templates/default \
|
|
-v /srv/sahana-demo/data/databases:/srv/web2py/applications/eden/databases \
|
|
-v /srv/sahana-demo/data/uploads:/srv/web2py/applications/eden/uploads \
|
|
sahana
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop sahana-demo
|
|
}
|