diff --git a/db/Dockerfile b/db/Dockerfile index a55d46681..884953d9b 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -21,6 +21,7 @@ WORKDIR /docker-entrypoint-initdb.d ARG STAMP=unknown COPY import-changes.sh config.ini /docker-entrypoint-initdb.d/import/ +COPY docker.cnf /etc/mysql/mysql.conf.d/ COPY changes /docker-entrypoint-initdb.d/import/changes COPY docker-boot.sh /docker-entrypoint-initdb.d/ diff --git a/db/docker-boot.sh b/db/docker-boot.sh index 6e04d3377..6a0d17c69 100755 --- a/db/docker-boot.sh +++ b/db/docker-boot.sh @@ -4,7 +4,7 @@ export MYSQL_PWD=root mysql_import() { FILE=$1 - echo "[INFO] -> Imported $FILE" + echo "[INFO] -> Importing $FILE" mysql -u root --default-character-set=utf8 --comments -f < "$FILE" } diff --git a/db/docker.cnf b/db/docker.cnf new file mode 100644 index 000000000..b07f49113 --- /dev/null +++ b/db/docker.cnf @@ -0,0 +1,3 @@ +[mysqld] +innodb_log_file_size = 4M +innodb_autoextend_increment = 4 diff --git a/db/export-data.sh b/db/export-data.sh index 75eea89fd..82c2a9573 100755 --- a/db/export-data.sh +++ b/db/export-data.sh @@ -100,4 +100,3 @@ TABLES=( workcenter ) dump_tables ${TABLES[@]} - diff --git a/db/export-structure.sh b/db/export-structure.sh index 020cf85be..0204e84cf 100755 --- a/db/export-structure.sh +++ b/db/export-structure.sh @@ -26,4 +26,3 @@ mysqldump \ --databases \ ${SCHEMAS[@]} \ > dump/structure.sql -