forked from colinmollenhour/mariadb-galera-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-10.4.arm64
36 lines (27 loc) · 1.03 KB
/
Dockerfile-10.4.arm64
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
# DO NOT EDIT THIS FILE - See Dockerfile.template
FROM mariadb:10.4.13-bionic
COPY bin/qpress-11-linux-arm64.tar /tmp/qpress.tar
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
curl \
netcat \
pigz \
percona-toolkit \
percona-xtrabackup \
pv \
gosu \
&& tar -C /usr/local/bin -xf /tmp/qpress.tar qpress \
&& chmod +x /usr/local/bin/qpress \
&& apt-get clean all && rm -rf /tmp/* /var/lib/apt/lists/*
COPY conf.d/* /etc/mysql/conf.d/
COPY *.sh /usr/local/bin/
COPY bin/galera-healthcheck-arm64 /usr/local/bin/galera-healthcheck
COPY primary-component.sql /
# Fix permissions
RUN chown -R mysql:mysql /etc/mysql && chmod -R go-w /etc/mysql
RUN chown -R mysql:mysql /var/run/mysqld && chmod -R go-w /var/run/mysqld
EXPOSE 3306 4444 4567 4567/udp 4568 8080 8081
HEALTHCHECK --retries=5 --start-period=30s CMD /usr/local/bin/healthcheck.sh
ENV SST_METHOD=mariabackup
ENTRYPOINT ["start.sh"]