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

Use mysql:8.0-oracle for base image #77

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
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
27 changes: 22 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ jobs:
push=true
;;
esac
tags="groonga/mroonga:${version}"
tag="groonga/mroonga:${version}"
tags="${tag}"
if [ "${version}" = "mysql-5.7-latest" ]; then
tags="${tags},groonga/mroonga:latest"
fi
echo "::set-output name=push::${push}"
echo "::set-output name=tags::${tags}"
- uses: actions/checkout@v2
- uses: docker/login-action@v1
echo "TAG=${tag}" >> ${GITHUB_ENV}
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v2
id: buildx
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v4
id: docker_build
with:
# cache-from: type=gha
Expand All @@ -69,3 +71,18 @@ jobs:
echo "ref: ${{ github.ref }}"
echo "tags: ${{ steps.parse.outputs.tags }}"
echo "digest: ${{ steps.docker_build.outputs.digest }}"
- uses: actions/checkout@v3
with:
path: mroonga
repository: mroonga/mroonga
- name: Test
run: |
docker run \
--name mroonga \
-d \
--volume ${PWD}:/host \
${{ env.TAG }}
cd mroonga
ls -al test
pwd
docker exec mroonga ${PWD}/test/run-sql-test.sh
40 changes: 17 additions & 23 deletions mysql-8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
FROM mysql:8.0.30-debian
FROM mysql:8.0.32-oracle
MAINTAINER groonga

ENV groonga_version=12.0.6 \
mroonga_version=12.06
ENV groonga_version=13.0.1 \
mroonga_version=13.01

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 && \
apt update && \
apt install -y -V --no-install-recommends \
ca-certificates \
lsb-release \
major_version=$(cut -d: -f5 /etc/system-release-cpe | grep -o "^[0-9]") && \
microdnf install -y \
wget && \
code_name=$(lsb_release --codename --short) && \
wget https://packages.groonga.org/debian/groonga-apt-source-latest-${code_name}.deb && \
apt install -y -V --no-install-recommends \
./groonga-apt-source-latest-${code_name}.deb && \
rm groonga-apt-source-latest-${code_name}.deb && \
apt update && \
apt install -y -V --no-install-recommends \
groonga-bin=${groonga_version}-1 \
microdnf install -y \
epel-release && \
wget https://apache.jfrog.io/artifactory/arrow/almalinux/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm && \
rpm -Uvh apache-arrow-release-latest.rpm && \
sed -i'' -e '26d' /etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow && \
wget https://packages.groonga.org/almalinux/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/groonga-release-latest.noarch.rpm && \
rpm -Uvh groonga-release-latest.noarch.rpm && \
microdnf install -y \
--enablerepo=ol$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)_codeready_builder \
--enablerepo=groonga-almalinux \
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 && \
apt clean && \
rm -rf /var/lib/apt/lists/*
groonga-tokenizer-mecab \
mysql-community-minimal-8.0-mroonga

RUN mkdir -p /docker-entrypoint-mroonga-initdb.d && \
cp /usr/share/mroonga/install.sql \
Expand Down
Loading