File tree Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 1
- FROM lsiobase/ubuntu:xenial
1
+ FROM lsiobase/ubuntu:bionic
2
2
3
3
# set version label
4
4
ARG BUILD_DATE
@@ -12,11 +12,18 @@ ENV MYSQL_DIR="/config"
12
12
ENV DATADIR=$MYSQL_DIR/databases
13
13
14
14
RUN \
15
- echo "**** add mariadb repository ****" && \
16
- apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 && \
17
- echo "deb [arch=amd64,i386] http://mirrors.coreix.net/mariadb/repo/10.1/ubuntu xenial main" >> /etc/apt/sources.list.d/mariadb.list && \
18
- echo "deb-src http://mirrors.coreix.net/mariadb/repo/10.1/ubuntu xenial main" >> /etc/apt/sources.list.d/mariadb.list && \
19
- echo "**** install packages ****" && \
15
+ echo "**** install gnupg ****" && \
16
+ apt-get update && \
17
+ apt-get install -y \
18
+ gnupg && \
19
+ echo "add mariadb repository ****" && \
20
+ echo "(redundant on armhf platform, but added for consistent dockerfile on all platforms) ****" && \
21
+ apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 && \
22
+ echo "deb http://mirror.sax.uk.as61049.net/mariadb/repo/10.3/ubuntu bionic main" >> \
23
+ /etc/apt/sources.list.d/mariadb.list && \
24
+ echo "deb-src http://mirror.sax.uk.as61049.net/mariadb/repo/10.3/ubuntu bionic main" >> \
25
+ /etc/apt/sources.list.d/mariadb.list && \
26
+ echo "**** install runtime packages ****" && \
20
27
apt-get update && \
21
28
apt-get install -y \
22
29
mariadb-server && \
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ Find custom.cnf in /config for config changes (restart container for them to tak
89
89
90
90
## Versions
91
91
92
+ + ** 10.09.18:** Rebase to ubuntu bionic and use 10.3 mariadb repository.
92
93
+ ** 09.12.17:** Fix continuation lines.
93
94
+ ** 12.09.17:** Gracefully shut down mariadb
94
95
+ ** 27.10.16:** Implement linting suggestions on database init script.
Original file line number Diff line number Diff line change @@ -6,12 +6,17 @@ mkdir -p \
6
6
/config/log/mysql \
7
7
/var/run/mysqld
8
8
9
+ if [ -e /etc/mysql/mariadb.conf.d/50-server.cnf ]; then \
10
+ CONF_FILE="/etc/mysql/mariadb.conf.d/50-server.cnf";
11
+ else CONF_FILE="/etc/mysql/my.cnf";
12
+ fi
13
+
9
14
# configure my.cnf and mysqld_safe
10
- sed -i 's/key_buffer\b/key_buffer_size/g' /etc/mysql/my.cnf
11
- sed -ri 's/^(bind-address|skip-networking)/;\1/' /etc/mysql/my.cnf
12
- sed -i s#/var/log/mysql#/config/log/mysql#g /etc/mysql/my.cnf
13
- sed -i -e 's/\(user.*=\).*/\1 abc/g' /etc/mysql/my.cnf
14
- sed -i -e "s#\\(datadir.*=\\).*#\\1 $DATADIR#g" /etc/mysql/my.cnf
15
+ sed -i 's/key_buffer\b/key_buffer_size/g' "$CONF_FILE"
16
+ sed -ri 's/^(bind-address|skip-networking)/;\1/' "$CONF_FILE"
17
+ sed -i s#/var/log/mysql#/config/log/mysql#g "$CONF_FILE"
18
+ sed -i -e 's/\(user.*=\).*/\1 abc/g' "$CONF_FILE"
19
+ sed -i -e "s#\\(datadir.*=\\).*#\\1 $DATADIR#g" "$CONF_FILE"
15
20
sed -i "s/user='mysql'/user='abc'/g" /usr/bin/mysqld_safe
16
21
17
22
# setup custom cnf file
You can’t perform that action at this time.
0 commit comments