File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ LABEL maintainer="DrupalStand"
44RUN apk --no-cache add --update mariadb mariadb-client pwgen
55
66ADD files/run.sh /scripts/run.sh
7- ADD conf/map.cnf /etc/mysql/conf .d/map.cnf
7+ ADD conf/map.cnf /etc/my.cnf .d/map.cnf
88
9- RUN mkdir /scripts/pre-exec.d && \
9+ # Comment out skip-networking
10+ RUN sed -e '/skip-networking/ s/^#*/#/' -i /etc/my.cnf.d/mariadb-server.cnf && \
11+ mkdir /scripts/pre-exec.d && \
1012 mkdir /scripts/pre-init.d && \
1113 chmod -R 755 /scripts
1214
Original file line number Diff line number Diff line change 2525
2626 chown -R mysql:mysql /var/lib/mysql
2727
28- mysql_install_db --user=mysql > /dev/null
28+ mysql_install_db --user=mysql --datadir=/var/lib/mysql > /dev/null
2929
3030 if [ " $MYSQL_ROOT_PASSWORD " = " " ]; then
3131 MYSQL_ROOT_PASSWORD=` pwgen 16 1`
You can’t perform that action at this time.
0 commit comments