docker-mariadb-backup-slave/Dockerfile
paspo e064feafff
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
added mariadb 10.4
2019-11-26 13:26:00 +01:00

17 lines
584 B
Docker

ARG MARIA_VERSION=10.4
FROM mariadb:${MARIA_VERSION}
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
COPY mysql.cnf /etc/mysql/mariadb.conf.d/settings.cnf
COPY maria-include.cnf /etc/mysql/conf.d/maria-include.cnf
COPY custom.cnf /etc/mysql/mariadb.conf.d/custom.cnf
RUN chown mysql:mysql /etc/mysql/mariadb.conf.d/custom.cnf
COPY docker-entrypoint.sh /usr/local/bin/
COPY healthcheck.sh /usr/local/bin/
COPY automysqlbackup /etc/default
COPY sudoers /etc/sudoers.d/mysudoers
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh