Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
id:
- "mysql-8.4"
- "mysql-9.7"
steps:
- name: Parse ID
run: |
Expand All @@ -34,7 +35,7 @@ jobs:

tag="groonga/mroonga:${version}"
tags="${tag}"
if [ "${version}" = "mysql-8.4-latest" ]; then
if [ "${version}" = "mysql-9.7-latest" ]; then
tags="${tags},groonga/mroonga:latest"
fi
echo "PUSH=${push}" >> ${GITHUB_ENV}
Expand Down
53 changes: 30 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,39 @@ If your /path/to/datadir doesn't have ibdata1, container decides to re-initializ
Currently, groonga/mroonga provides these couples of versions.
([tags](https://hub.docker.com/r/groonga/mroonga/tags/) cannot display all of them..)

### For MySQL 8.4
### For MySQL 9.7

| tag | MySQL | Mroonga | Groonga |
|--------------------------|--------|---------|---------|
| mysql-8.4-latest, latest | 8.4.13 | 16.15 | 16.1.4 |
| mysql-8.4.13-16.15 | 8.4.13 | 16.15 | 16.1.4 |
| mysql-8.4.11-16.12 | 8.4.11 | 16.12 | 16.1.2 |
| mysql-8.4.11-16.11 | 8.4.11 | 16.11 | 16.1.0 |
| mysql-8.4.11-16.09 | 8.4.11 | 16.09 | 16.0.9 |
| mysql-8.4.11-16.08 | 8.4.11 | 16.08 | 16.0.8 |
| mysql-8.4.10-16.07 | 8.4.10 | 16.07 | 16.0.5 |
| mysql-8.4.8-16.01 | 8.4.8 | 16.01 | 16.0.1 |
| mysql-8.4.8-15.25 | 8.4.8 | 15.25 | 15.2.5 |
| mysql-8.4.8-15.23 | 8.4.8 | 15.23 | 15.2.3 |
| mysql-8.4.7-15.22 | 8.4.7 | 15.22 | 15.2.1 |
| mysql-8.4.7-15.21 | 8.4.7 | 15.21 | 15.2.1 |
| mysql-8.4.6-15.17 | 8.4.6 | 15.17 | 15.1.7 |
| mysql-8.4.6-15.16 | 8.4.6 | 15.16 | 15.1.5 |
| mysql-8.4.5-15.11 | 8.4.5 | 15.11 | 15.1.1 |
| mysql-8.4.5-15.10 | 8.4.5 | 15.10 | 15.0.9 |
| mysql-8.4.5-15.07 | 8.4.5 | 15.07 | 15.0.4 |
| mysql-8.4.4-15.05 | 8.4.4 | 15.05 | 15.0.4 |
| mysql-8.4.4-15.04 | 8.4.4 | 15.04 | 15.0.4 |
| mysql-8.4.4-15.00 | 8.4.4 | 15.00 | 15.0.0 |
| mysql-8.4.4-14.14 | 8.4.4 | 14.14 | 14.1.3 |
| mysql-8.4.4-14.13 | 8.4.4 | 14.13 | 14.1.3 |
| mysql-9.7-latest, latest | 9.7.4 | 16.15 | 16.1.4 |
| mysql-9.7.4-16.15 | 9.7.4 | 16.15 | 16.1.4 |

### For MySQL 8.4

| tag | MySQL | Mroonga | Groonga |
|--------------------|--------|---------|---------|
| mysql-8.4-latest | 8.4.13 | 16.15 | 16.1.4 |
| mysql-8.4.13-16.15 | 8.4.13 | 16.15 | 16.1.4 |
| mysql-8.4.11-16.12 | 8.4.11 | 16.12 | 16.1.2 |
| mysql-8.4.11-16.11 | 8.4.11 | 16.11 | 16.1.0 |
| mysql-8.4.11-16.09 | 8.4.11 | 16.09 | 16.0.9 |
| mysql-8.4.11-16.08 | 8.4.11 | 16.08 | 16.0.8 |
| mysql-8.4.10-16.07 | 8.4.10 | 16.07 | 16.0.5 |
| mysql-8.4.8-16.01 | 8.4.8 | 16.01 | 16.0.1 |
| mysql-8.4.8-15.25 | 8.4.8 | 15.25 | 15.2.5 |
| mysql-8.4.8-15.23 | 8.4.8 | 15.23 | 15.2.3 |
| mysql-8.4.7-15.22 | 8.4.7 | 15.22 | 15.2.1 |
| mysql-8.4.7-15.21 | 8.4.7 | 15.21 | 15.2.1 |
| mysql-8.4.6-15.17 | 8.4.6 | 15.17 | 15.1.7 |
| mysql-8.4.6-15.16 | 8.4.6 | 15.16 | 15.1.5 |
| mysql-8.4.5-15.11 | 8.4.5 | 15.11 | 15.1.1 |
| mysql-8.4.5-15.10 | 8.4.5 | 15.10 | 15.0.9 |
| mysql-8.4.5-15.07 | 8.4.5 | 15.07 | 15.0.4 |
| mysql-8.4.4-15.05 | 8.4.4 | 15.05 | 15.0.4 |
| mysql-8.4.4-15.04 | 8.4.4 | 15.04 | 15.0.4 |
| mysql-8.4.4-15.00 | 8.4.4 | 15.00 | 15.0.0 |
| mysql-8.4.4-14.14 | 8.4.4 | 14.14 | 14.1.3 |
| mysql-8.4.4-14.13 | 8.4.4 | 14.13 | 14.1.3 |

### For MySQL 8.0

Expand Down
42 changes: 42 additions & 0 deletions mysql-9.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM mysql:9.7.4-oraclelinux9

# TODO
# Remove `--setopt=apache-arrow-almalinux.gpgcheck=0` option.
# It is specified because the installation fails with the following error.
# ```
# (microdnf:544): libdnf-WARNING **: 04:37:39.459: failed to parse public key for /etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow
# error: failed to parse public key for /var/cache/yum/metadata/apache-arrow-almalinux-9-x86_64/RPM-GPG-KEY-Apache-Arrow
# ```

ENV groonga_version=16.1.4 \
mroonga_version=16.15

RUN mkdir -p /etc/mysql/mysql.conf.d && \
touch /etc/mysql/mysql.conf.d/default-auth-override.cnf && \
touch /etc/mysql/mysql.conf.d/lowercase-table-names.cnf && \
microdnf install -y \
'dnf-command(config-manager)' \
epel-release && \
rpm -i https://packages.groonga.org/almalinux/9/groonga-release-latest.noarch.rpm && \
rpm -i https://apache.jfrog.io/artifactory/arrow/almalinux/9/apache-arrow-release-latest.rpm && \
microdnf install -y \
--setopt=apache-arrow-almalinux.gpgcheck=0 \
groonga-tokenizer-mecab-${groonga_version}-1.el9.x86_64 \
mysql-community-minimal-9.7-mroonga-${mroonga_version}-1.el9.x86_64 && \
microdnf clean all

RUN mkdir -p /docker-entrypoint-mroonga-initdb.d && \
sed \
-e '/^source /d' \
/usr/share/mroonga/install.sql > \
/docker-entrypoint-mroonga-initdb.d/00-install.sql && \
cp /usr/share/mroonga/update.sql \
/docker-entrypoint-mroonga-initdb.d/01-update.sql && \
sed \
-i'' \
-e 's,docker_process_init_files /,docker_process_init_files /docker-entrypoint-mroonga-initdb.d/* /,g' \
/usr/local/bin/docker-entrypoint.sh

# mysql:9.7.4 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"]
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eu

target_mysqls=(
"8.4"
"9.7"
)

mroonga_version=$(curl https://api.github.com/repos/mroonga/mroonga/releases/latest \
Expand Down
Loading