2018-01-19 15:50:15 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="MariaDB 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 mariadb \
|
|
|
|
-h mariadb \
|
2018-01-27 14:13:59 +01:00
|
|
|
-v /srv/mariadb/conf:/etc/mysql \
|
2018-01-27 14:08:19 +01:00
|
|
|
-v /srv/mariadb/data:/var/lib/mysql \
|
|
|
|
mariadb
|
2018-01-19 15:50:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2018-01-19 16:02:41 +01:00
|
|
|
/usr/bin/docker stop mariadb
|
2018-01-19 15:50:15 +01:00
|
|
|
}
|