Skip to content

Commit 6c1518b

Browse files
committed
mysql-8.0/Dockerfile: Update Mroonga and Groonga versions
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.
1 parent 2c616fd commit 6c1518b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mysql-8.0/Dockerfile

Lines changed: 5 additions & 4 deletions
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,6 +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+
rm -rf /var/lib/mysql && \
2526
sed \
2627
-i'' \
2728
-e 's,@MRN_DATA_DIR@,/usr/share/mroonga,g' \
@@ -37,6 +38,6 @@ RUN mkdir -p /docker-entrypoint-mroonga-initdb.d && \
3738
-e 's,docker_process_init_files /,docker_process_init_files /docker-entrypoint-mroonga-initdb.d/* /,g' \
3839
/usr/local/bin/docker-entrypoint.sh
3940

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

0 commit comments

Comments
 (0)