Skip to content

Commit 5e9f30c

Browse files
authored
mysql-8.0/Dockerfile: Update Mroonga and Groonga versions (#86)
When mysql-community-8.0-mroonga is installed, mysql-community-server is installed as a dependency. At that time, the initialization process is also executed, and the initialization process of `docker-entrypoint.sh` is not executed. Therefore, `rm -rf /var/lib/mysql` is added. Removed `sed` since `install.sql` no longer contains `MRN_DATA_DIR`.
1 parent d3e2924 commit 5e9f30c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

mysql-8.0/Dockerfile

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM mysql:8.0.30-debian
1+
FROM mysql:8.0.40-debian
22

3-
ENV groonga_version=12.0.6 \
4-
mroonga_version=12.06
3+
ENV groonga_version=14.1.0 \
4+
mroonga_version=14.10
55

66
RUN mkdir -p /etc/mysql/mysql.conf.d && \
77
touch /etc/mysql/mysql.conf.d/default-auth-override.cnf && \
@@ -22,10 +22,7 @@ RUN mkdir -p /etc/mysql/mysql.conf.d && \
2222
groonga-normalizer-mysql \
2323
groonga-tokenizer-mecab=${groonga_version}-1 \
2424
mysql-community-8.0-mroonga=${mroonga_version}-1 && \
25-
sed \
26-
-i'' \
27-
-e 's,@MRN_DATA_DIR@,/usr/share/mroonga,g' \
28-
/usr/share/mroonga/install.sql && \
25+
rm -rf /var/lib/mysql && \
2926
apt clean && \
3027
rm -rf /var/lib/apt/lists/*
3128

@@ -37,6 +34,6 @@ RUN mkdir -p /docker-entrypoint-mroonga-initdb.d && \
3734
-e 's,docker_process_init_files /,docker_process_init_files /docker-entrypoint-mroonga-initdb.d/* /,g' \
3835
/usr/local/bin/docker-entrypoint.sh
3936

40-
# mysql:8.0.30 image has DB in /var/lib/mysql/.
37+
# mysql:8.0.40 image has DB in /var/lib/mysql/.
4138
# This clears /var/lib/mysql/ to ensure creating a new DB on "docker run".
4239
VOLUME ["/var/lib/mysql"]

0 commit comments

Comments
 (0)