update to alpine 3.13 (#163)

* update to alpine 3.13

* enable network for mysqld

Co-authored-by: nukedupe <nukedupe>
This commit is contained in:
nukedupe 2021-04-21 11:21:06 +02:00 committed by GitHub
parent eca74149a3
commit cf02e5d626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
FROM alpine:3.8
FROM alpine:3.13
LABEL maintainer="Bartek Fabiszewski (https://github.com/bfabiszewski)"