Spotter-VM/mariadb/lxcfile
Disassembler ce325cf3d0
Squashed commit of the following:
- Bump basic OS to Alpine 3.9
 - Restructure repo and add layer versioning
 - Use JSON for all metadata
 - Merge abuild branch (but without abuild)
2019-02-26 20:24:02 +01:00

24 lines
522 B
Plaintext

IMAGE mariadb
LAYER shared/alpine3.9
LAYER mariadb/mariadb
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
MOUNT DIR /srv/mariadb/conf etc/mysql
MOUNT DIR /srv/mariadb/data var/lib/mysql
USER 3306 3306
CMD mysqld
HALT SIGTERM