Skip to content

Commit

Permalink
feat: MARIADB_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Aug 6, 2024
1 parent 50ffe87 commit f1054c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM snowdreamtech/alpine:3.20.2
LABEL maintainer="snowdream <[email protected]>"

ENV MARIADB_VERSION=10.11.8-r0 \
MARIADB_PORT=3306 \
MARIADB_ROOT_PASSWORD="" \
REMOVE_ANONYMOUS_USERS=1 \
DISALLOW_ROOT_LOGIN_REMOTELY=1 \
Expand Down
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh
set -e

MARIADB_CONFIG_PATH=/etc/my.cnf.d/mariadb-server.cnf

# Modifying configuration file mariadb-server.cnf
sed -i "s|port\s*=\s*|port = ${MARIADB_PORT}|g" ${MARIADB_CONFIG_PATH}

# mysqld
(
sleep 3
Expand Down

0 comments on commit f1054c9

Please sign in to comment.