2021-02-09 17:05:00 +01:00
|
|
|
FROM mysql:5.6.44 as dist
|
|
|
|
ARG DOCKER_BUILD_DIR
|
|
|
|
|
2021-06-13 02:09:57 +02:00
|
|
|
LABEL maintainer aynic.os <support+docker@asycn.io>
|
2021-02-09 17:05:00 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2021-06-13 02:09:57 +02:00
|
|
|
FROM dist as master
|
2021-02-09 17:05:00 +01:00
|
|
|
ARG DOCKER_BUILD_DIR
|
|
|
|
|
|
|
|
# config
|
2021-06-13 02:09:57 +02:00
|
|
|
COPY ${DOCKER_BUILD_DIR}/conf.d/master.cnf /etc/mysql/conf.d/
|