From 254e576be78ae6c8764f83bf9098b6f576a2ffda Mon Sep 17 00:00:00 2001 From: Abe Tomoaki Date: Tue, 8 Oct 2024 09:12:47 +0900 Subject: [PATCH] debian: add support for PostgreSQL 17 --- .github/workflows/build.yml | 1 + .github/workflows/test.yml | 1 + debian/17/Dockerfile | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 debian/17/Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a050cda..17e6e0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: - "alpine-14-slim" - "alpine-13-slim" - "alpine-12-slim" + - "debian-17" - "debian-16" - "debian-15" - "debian-14" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e56caf..3517ea7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,7 @@ jobs: - "alpine-14-slim" - "alpine-13-slim" - "alpine-12-slim" + - "debian-17" - "debian-16" - "debian-15" - "debian-14" diff --git a/debian/17/Dockerfile b/debian/17/Dockerfile new file mode 100644 index 0000000..f5609d7 --- /dev/null +++ b/debian/17/Dockerfile @@ -0,0 +1,21 @@ +FROM postgres:17-bookworm + +ENV PGROONGA_VERSION=3.2.4-1 +ENV POSTGRESQL_VERSION=17 +RUN \ + apt update && \ + apt install -y -V lsb-release wget && \ + wget https://apache.jfrog.io/artifactory/arrow/debian/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ + apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ + rm apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ + wget https://packages.groonga.org/debian/groonga-apt-source-latest-$(lsb_release --codename --short).deb && \ + apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb && \ + rm groonga-apt-source-latest-$(lsb_release --codename --short).deb && \ + apt update && \ + apt install -y -V \ + postgresql-${POSTGRESQL_VERSION}-pgdg-pgroonga=${PGROONGA_VERSION} \ + groonga-normalizer-mysql \ + groonga-token-filter-stem \ + groonga-tokenizer-mecab && \ + apt clean && \ + rm -rf /var/lib/apt/lists/*