forked from jakolehm/docker-galera-mariadb-10.0
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathDockerfile-11.4
More file actions
32 lines (24 loc) · 938 Bytes
/
Dockerfile-11.4
File metadata and controls
32 lines (24 loc) · 938 Bytes
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
FROM mariadb:11.4
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
curl \
netcat-traditional \
pigz \
&& 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 ;\
# Remove options that are no longer supported
sed -i '/innodb_lock_schedule_algorithm/d' /etc/mysql/conf.d/30-galera.cnf ;
EXPOSE 3306 4444 4567 4567/udp 4568 8080 8081
HEALTHCHECK CMD /usr/local/bin/healthcheck.sh
ENV SST_METHOD=mariabackup
ENTRYPOINT ["start.sh"]