2019-06-25 15:56:35 +02:00
|
|
|
IMAGE mariadb 10.3.15-190620
|
|
|
|
META title MariaDB
|
|
|
|
META desc-cs Relační databázový systém kompatibilní s MySQL
|
|
|
|
META desc-en MySQL-compatible relational database management system
|
|
|
|
META type service
|
|
|
|
META license GPL
|
|
|
|
|
|
|
|
LAYER alpine3.9 3.9.4-190620
|
2018-09-13 13:27:09 +02:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Create OS user (which will be picked up later by apk add)
|
|
|
|
addgroup -S -g 3306 mysql
|
|
|
|
adduser -S -u 3306 -h /var/lib/mysql -s /bin/false -g mysql -G mysql mysql
|
|
|
|
|
|
|
|
# Install MariaDB
|
|
|
|
apk --no-cache add mariadb mariadb-client
|
|
|
|
|
|
|
|
# Create socket directory
|
|
|
|
mkdir /run/mysqld
|
|
|
|
chown mysql:mysql /run/mysqld
|
|
|
|
EOF
|
|
|
|
|
2019-02-28 16:06:03 +01:00
|
|
|
MOUNT FILE /srv/mariadb/conf/my.cnf etc/my.cnf
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/mariadb/data var/lib/mysql
|
2018-09-13 13:27:09 +02:00
|
|
|
|
|
|
|
USER 3306 3306
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD mysqld
|
2018-09-20 07:21:24 +02:00
|
|
|
HALT SIGTERM
|