forked from jakolehm/docker-galera-mariadb-10.0
-
Notifications
You must be signed in to change notification settings - Fork 103
/
Dockerfile-10.4
37 lines (29 loc) · 1.13 KB
/
Dockerfile-10.4
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
32
33
34
35
36
37
FROM mariadb:10.4
# Download blocked from http://www.quicklz.com/qpress-11-linux-x64.tar
COPY bin/qpress-11-linux-x64.tar /tmp/qpress.tar
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
curl \
netcat \
pigz \
pv \
&& 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 /
RUN set -ex ;\
# Fix permissions
chown -R mysql:mysql /etc/mysql ;\
chmod -R go-w /etc/mysql ;\
# Remove auth_socket config - already enabled in 10.4 by default
rm /etc/mysql/conf.d/31-auth-socket.cnf ;\
# Disable code that deletes progress file after SST
sed -i 's#-p \$progress#-p \$progress-XXX#' /usr/bin/wsrep_sst_mariabackup
EXPOSE 3306 4444 4567 4567/udp 4568 8080 8081
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh
ENV SST_METHOD=mariabackup
ENTRYPOINT ["start.sh"]