docker-mariadb-backup-slave/Dockerfile

23 lines
740 B
Docker
Raw Permalink Normal View History

2022-03-01 18:06:01 +00:00
ARG MARIA_VERSION
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
2023-06-06 12:35:06 +00:00
COPY docker-entrypoint-new.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
2023-06-06 12:35:06 +00:00
HEALTHCHECK --interval=30s --start-period=30s --timeout=3s \
CMD /usr/local/bin/healthcheck.sh
VOLUME /var/lib/automysqlbackup
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-new.sh"]
CMD ["mariadbd"]