Browse Source

Update Start temporary Mysql Server Config

master
Siroco 2 months ago
parent
commit
2bbc533ace
Signed by: siroco GPG Key ID: 1324098302A514B0
2 changed files with 4 additions and 2 deletions
  1. +2
    -2
      Dockerfile
  2. +2
    -0
      docker-entrypoint.sh

+ 2
- 2
Dockerfile View File

@ -13,8 +13,8 @@ RUN apt-get update && \
COPY 50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf
RUN set -e; \
mkdir /var/run/mysqld; \
chmod 777 /var/run/mysqld
mkdir /run/mysqld; \
chmod 777 /run/mysqld
COPY docker-entrypoint.sh /usr/local/bin/


+ 2
- 0
docker-entrypoint.sh View File

@ -21,6 +21,8 @@ mysqladmin shutdown
docker_temp_server_start() {
echo "Arranco temporalmente MariaDB para crear la base de datos ${MYSQL_DATABASE} y el usuario ${MYSQL_USER}"
echo "Running with user"
whoami
mysqld_safe &
sleep 6
docker_change_passw


Loading…
Cancel
Save