Docker size reduced
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Juan Ferrer 2019-07-25 17:35:51 +02:00
parent d608c80028
commit ab2a47d363
5 changed files with 5 additions and 3 deletions

View File

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

View File

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

3
db/docker.cnf Normal file
View File

@ -0,0 +1,3 @@
[mysqld]
innodb_log_file_size = 4M
innodb_autoextend_increment = 4

View File

@ -100,4 +100,3 @@ TABLES=(
workcenter
)
dump_tables ${TABLES[@]}

View File

@ -26,4 +26,3 @@ mysqldump \
--databases \
${SCHEMAS[@]} \
> dump/structure.sql