Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql-8.0/Dockerfile: Update Mroonga and Groonga versions #86

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions mysql-8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mysql:8.0.30-debian
FROM mysql:8.0.40-debian

ENV groonga_version=12.0.6 \
mroonga_version=12.06
ENV groonga_version=14.1.0 \
mroonga_version=14.10

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

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

# mysql:8.0.30 image has DB in /var/lib/mysql/.
# mysql:8.0.40 image has DB in /var/lib/mysql/.
# This clears /var/lib/mysql/ to ensure creating a new DB on "docker run".
VOLUME ["/var/lib/mysql"]
Loading