1
1
# vim:set ft=dockerfile:
2
- FROM ubuntu:bionic
2
+ FROM ubuntu:xenial
3
3
4
4
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
5
5
RUN groupadd -r mysql && useradd -r -g mysql mysql
@@ -57,18 +57,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
57
57
&& rm -rf /var/lib/apt/lists/*
58
58
59
59
RUN { \
60
- echo "mariadb-server-10.5 " mysql-server/root_password password 'unused' ; \
61
- echo "mariadb-server-10.5 " mysql-server/root_password_again password 'unused' ; \
60
+ echo "mariadb-server-10.6 " mysql-server/root_password password 'unused' ; \
61
+ echo "mariadb-server-10.6 " mysql-server/root_password_again password 'unused' ; \
62
62
} | debconf-set-selections
63
63
64
64
RUN apt-get update -y
65
65
RUN apt-get install -y software-properties-common wget
66
- RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
67
- RUN apt-key adv --recv-keys --keyserver ha.pool.sks-keyservers.net F1656F24C74CD1D8
68
- RUN echo 'deb http://yum.mariadb.org/galera/repo/deb bionic main' > /etc/apt/sources.list.d/galera-test-repo.list
69
- RUN apt-get update -y
66
+ # RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
67
+ # RUN apt-key adv --recv-keys --keyserver ha.pool.sks-keyservers.net F1656F24C74CD1D8
68
+ # RUN echo 'deb http://yum.mariadb.org/galera/repo/deb xenial main' > /etc/apt/sources.list.d/galera-test-repo.list
69
+ # RUN apt-get update -y
70
+
71
+ RUN apt-get install -y curl libdbi-perl rsync socat libnuma1 libaio1 zlib1g-dev libreadline5 libjemalloc1 libsnappy1v5 libcrack2
70
72
71
- RUN apt-get install -y curl libdbi-perl rsync socat galera3 libnuma1 libaio1 zlib1g-dev libreadline5 libjemalloc1 libsnappy1v5 libcrack2
73
+ # RUN apt-get install -y galera3
72
74
73
75
COPY *.deb /root/
74
76
RUN chmod 777 /root/*
@@ -77,16 +79,17 @@ RUN dpkg --install /root/mysql-common*
77
79
RUN dpkg --install /root/mariadb-common*
78
80
RUN dpkg -R --unpack /root/
79
81
RUN apt-get install -f -y
80
-
82
+ RUN ls -lrt /etc/mysql
83
+ RUN ls -lrt /etc/mysql/mariadb.conf.d
81
84
RUN rm -rf /var/lib/apt/lists/* \
82
- && sed -ri 's/^user\s /#&/' /etc/mysql/my.cnf /etc/mysql/conf.d/* \
85
+ && sed -ri 's/^user\s /#&/' /etc/mysql/my.cnf /etc/mysql/mariadb. conf.d/*.cnf \
83
86
&& rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql /var/run/mysqld \
84
87
&& chown -R mysql:mysql /var/lib/mysql /var/run/mysqld \
85
88
&& chmod 777 /var/run/mysqld \
86
89
&& find /etc/mysql/ -name '*.cnf' -print0 \
87
90
| xargs -0 grep -lZE '^(bind-address|log)' \
88
91
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/' \
89
- && echo '[mysqld]\n skip-host-cache\n skip-name-resolve' > /etc/mysql/conf.d/docker.cnf
92
+ && echo '[mysqld]\n skip-host-cache\n skip-name-resolve' > /etc/mysql/mariadb. conf.d/docker.cnf
90
93
91
94
VOLUME /var/lib/mysql
92
95
0 commit comments