docker-mariadb-backup-slave/Dockerfile

17 lines
584 B
Docker
Raw Normal View History

2019-11-26 12:26:00 +00:00
ARG MARIA_VERSION=10.4
2019-11-25 13:28:34 +00:00
FROM mariadb:${MARIA_VERSION}
2019-11-23 18:00:26 +00:00
2019-11-24 16:33:44 +00:00
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
2019-11-23 18:00:26 +00:00
2019-11-24 10:15:26 +00:00
COPY mysql.cnf /etc/mysql/mariadb.conf.d/settings.cnf
2019-11-25 19:21:59 +00:00
COPY maria-include.cnf /etc/mysql/conf.d/maria-include.cnf
2019-11-25 17:54:15 +00:00
COPY custom.cnf /etc/mysql/mariadb.conf.d/custom.cnf
RUN chown mysql:mysql /etc/mysql/mariadb.conf.d/custom.cnf
2019-11-23 18:00:26 +00:00
COPY docker-entrypoint.sh /usr/local/bin/
2019-11-24 16:33:44 +00:00
COPY healthcheck.sh /usr/local/bin/
2019-11-23 18:00:26 +00:00
COPY automysqlbackup /etc/default
2019-11-24 09:50:11 +00:00
COPY sudoers /etc/sudoers.d/mysudoers
2019-11-24 16:33:44 +00:00
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh