From cf02e5d626de7542d7f025ee44131694f3b37e6c Mon Sep 17 00:00:00 2001 From: nukedupe <82565629+nukedupe@users.noreply.github.com> Date: Wed, 21 Apr 2021 11:21:06 +0200 Subject: [PATCH] update to alpine 3.13 (#163) * update to alpine 3.13 * enable network for mysqld Co-authored-by: nukedupe --- .docker/init.sh | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.docker/init.sh b/.docker/init.sh index 65d0ba4..9eed9fc 100644 --- a/.docker/init.sh +++ b/.docker/init.sh @@ -51,6 +51,7 @@ elif [ "$ULOGGER_DB_DRIVER" = "sqlite" ]; then sqlite3 -line /data/sqlite/ulogger.db "INSERT INTO users (login, password, admin) VALUES ('${ULOGGER_ADMIN_USER}', '\$2y\$10\$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq', 1)" sed -i "s/^\$dbdsn = .*$/\$dbdsn = \"sqlite:\/data\/sqlite\/ulogger.db\";/" /var/www/html/config.php else + sed -i "s|.*skip-networking.*|#skip-networking|g" /etc/my.cnf.d/mariadb-server.cnf mkdir -p /run/mysqld /data/mysql chown mysql:mysql /run/mysqld /data/mysql mysql_install_db --user=mysql --datadir=/data/mysql diff --git a/Dockerfile b/Dockerfile index 92804b9..15fc830 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.8 +FROM alpine:3.13 LABEL maintainer="Bartek Fabiszewski (https://github.com/bfabiszewski)"