forked from colinmollenhour/mariadb-galera-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM mariadb:10.2
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
curl \
netcat \
pigz \
percona-toolkit \
percona-xtrabackup \
pv \
&& curl -sSL -o /tmp/qpress.tar http://www.quicklz.com/qpress-11-linux-x64.tar \
&& tar -C /usr/local/bin -xf /tmp/qpress.tar qpress \
&& chmod +x /usr/local/bin/qpress \
&& rm -rf /tmp/* /var/cache/apk/* /var/lib/apt/lists/*
COPY conf.d/* /etc/mysql/conf.d/
COPY *.sh /usr/local/bin/
COPY bin/galera-healthcheck /usr/local/bin/galera-healthcheck
COPY primary-component.sql /
# Fix permissions
RUN chown -R mysql:mysql /etc/mysql && chmod -R go-w /etc/mysql
EXPOSE 3306 4444 4567 4567/udp 4568 8080 8081
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh
ENV SST_METHOD=xtrabackup-v2
ENTRYPOINT ["start.sh"]