import files
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
FROM mysql:5.6.44 as dist
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
LABEL maintainer 1001Pharmacies <technique+docker@1001pharmacies.com>
|
||||
|
||||
# config
|
||||
COPY ${DOCKER_BUILD_DIR}/conf.d/all.cnf /etc/mysql/conf.d/
|
||||
|
||||
# install goss
|
||||
ADD https://github.com/aelsabbahy/goss/releases/latest/download/goss-linux-amd64 /usr/bin/goss
|
||||
RUN chmod +rx /usr/bin/goss
|
||||
COPY ${DOCKER_BUILD_DIR}/goss.yml /tests/goss.yml
|
||||
|
||||
HEALTHCHECK CMD goss -g /tests/goss.yml validate --format tap
|
||||
|
||||
FROM dist as local
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
# config
|
||||
COPY ${DOCKER_BUILD_DIR}/conf.d/local.cnf /etc/mysql/conf.d/
|
||||
|
||||
FROM local as debug
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM local as tests
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM tests as preprod
|
||||
ARG DOCKER_BUILD_DIR
|
||||
|
||||
FROM preprod as prod
|
||||
ARG DOCKER_BUILD_DIR
|
||||
@@ -0,0 +1,22 @@
|
||||
[mysqld]
|
||||
binlog_cache_size = 32768
|
||||
character_set_server = utf8mb4
|
||||
collation_server = utf8mb4_unicode_ci
|
||||
innodb_file_per_table = 1
|
||||
innodb_flush_method = O_DIRECT
|
||||
innodb_log_buffer_size = 8388608
|
||||
innodb_log_file_size = 134217728
|
||||
key_buffer_size = 16777216
|
||||
# local_infile = 1
|
||||
log_bin_trust_function_creators = 1
|
||||
log_output = FILE
|
||||
max_allowed_packet = 1G
|
||||
max_binlog_size = 128M
|
||||
query_cache_limit = 16M
|
||||
query_cache_size = 128M
|
||||
query_cache_type = 1
|
||||
read_buffer_size = 262144
|
||||
read_rnd_buffer_size = 524288
|
||||
slow_query_log = 1
|
||||
table_open_cache_instances = 16
|
||||
wait_timeout = 31536000
|
||||
@@ -0,0 +1,8 @@
|
||||
[mysqld]
|
||||
innodb_buffer_pool_size = 1G
|
||||
max_connections = 128
|
||||
sort_buffer_size = 1M
|
||||
|
||||
innodb_strict_mode = 1
|
||||
local_infile = 0
|
||||
; sql-mode = "TRADITIONAL"
|
||||
@@ -0,0 +1,23 @@
|
||||
file:
|
||||
/usr/sbin/mysqld:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0755"
|
||||
owner: root
|
||||
sha256: bf5ba9081d08792048ef8459e1ea6ddd155b82bc1a22cd5c8666e47050cd6208
|
||||
package:
|
||||
mysql-server:
|
||||
installed: true
|
||||
mysql-common:
|
||||
installed: true
|
||||
port:
|
||||
tcp6:3306:
|
||||
listening: true
|
||||
ip:
|
||||
process:
|
||||
mysqld:
|
||||
running: true
|
||||
user:
|
||||
mysql:
|
||||
exists: true
|
||||
uid: 999
|
||||
Reference in New Issue
Block a user