23 lines
740 B
Docker
Raw Normal View History

2022-03-01 19:06:01 +01:00
ARG MARIA_VERSION
2019-11-25 14:28:34 +01:00
FROM mariadb:${MARIA_VERSION}
2019-11-23 19:00:26 +01:00
2019-11-24 17:33:44 +01:00
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
2019-11-23 19:00:26 +01:00
2019-11-24 11:15:26 +01:00
COPY mysql.cnf /etc/mysql/mariadb.conf.d/settings.cnf
2019-11-25 20:21:59 +01:00
COPY maria-include.cnf /etc/mysql/conf.d/maria-include.cnf
2019-11-25 18:54:15 +01: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 14:35:06 +02:00
COPY docker-entrypoint-new.sh /usr/local/bin/
2019-11-24 17:33:44 +01:00
COPY healthcheck.sh /usr/local/bin/
2019-11-23 19:00:26 +01:00
COPY automysqlbackup /etc/default
2019-11-24 10:50:11 +01:00
COPY sudoers /etc/sudoers.d/mysudoers
2023-06-06 14:35:06 +02: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"]