2018-02-12 16:25:20 +00:00
|
|
|
FROM mariadb:10.3.3
|
2017-07-13 18:25:26 +00:00
|
|
|
|
2018-01-09 12:42:10 +00:00
|
|
|
ARG MAX_CONNECTIONS=100
|
|
|
|
|
|
|
|
ADD wsrep.cnf.template /etc/mysql/conf.d/
|
|
|
|
RUN sed -e s/@MAX_CONNECTIONS@/$MAX_CONNECTIONS/ /etc/mysql/conf.d/wsrep.cnf.template > /etc/mysql/conf.d/wsrep.cnf; cat /etc/mysql/conf.d/wsrep.cnf
|
2017-07-13 18:25:26 +00:00
|
|
|
|
|
|
|
ADD mariadb-healthcheck.sh /usr/local/bin/
|
|
|
|
RUN chmod -v +x /usr/local/bin/mariadb-healthcheck.sh
|
|
|
|
HEALTHCHECK --interval=5s --timeout=5s --retries=12 CMD ["mariadb-healthcheck.sh"]
|
|
|
|
|
|
|
|
ENV DATADIR /var/lib/mysql
|
|
|
|
ADD docker-entrypoint-wsrep.sh /usr/local/bin/
|
|
|
|
RUN chmod -v +x /usr/local/bin/docker-entrypoint-wsrep.sh
|