docker-mariadb-backup-slave/Dockerfile
paspo 7a5317012d
All checks were successful
continuous-integration/drone/tag Build is passing
updated mariadb version
2023-06-06 14:35:06 +02:00

23 lines
740 B
Docker

ARG MARIA_VERSION
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-new.sh /usr/local/bin/
COPY healthcheck.sh /usr/local/bin/
COPY automysqlbackup /etc/default
COPY sudoers /etc/sudoers.d/mysudoers
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"]