From f7fc5ca701a5784bf684a45e27a6a03e9e133c8d Mon Sep 17 00:00:00 2001 From: Abe Tomoaki Date: Tue, 8 Oct 2024 09:26:34 +0900 Subject: [PATCH] alpine-slim: add support for PostgreSQL 17 (#63) --- .github/workflows/build.yml | 1 + .github/workflows/test.yml | 1 + alpine/17-slim/Dockerfile | 38 +++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 alpine/17-slim/Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a050cda..274aca5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: - "alpine-14" - "alpine-13" - "alpine-12" + - "alpine-17-slim" - "alpine-16-slim" - "alpine-15-slim" - "alpine-14-slim" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e56caf..f8925f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: - "alpine-14" - "alpine-13" - "alpine-12" + - "alpine-17-slim" - "alpine-16-slim" - "alpine-15-slim" - "alpine-14-slim" diff --git a/alpine/17-slim/Dockerfile b/alpine/17-slim/Dockerfile new file mode 100644 index 0000000..b3ead91 --- /dev/null +++ b/alpine/17-slim/Dockerfile @@ -0,0 +1,38 @@ +FROM postgres:17-alpine + +ENV PGROONGA_VERSION=3.2.4 \ + GROONGA_VERSION=14.0.9 + +COPY alpine/build.sh / +RUN \ + apk add --no-cache --virtual=.build-dependencies \ + apache-arrow-dev \ + build-base \ + clang15-dev \ + cmake \ + gettext-dev \ + linux-headers \ + llvm15 \ + lz4-dev \ + msgpack-c-dev \ + rapidjson-dev \ + ruby \ + samurai \ + xsimd-dev \ + xxhash-dev \ + zlib-dev \ + zstd-dev && \ + /build.sh ${PGROONGA_VERSION} ${GROONGA_VERSION} && \ + rm -f build.sh && \ + apk del .build-dependencies && \ + apk add --no-cache \ + libarrow \ + libxxhash \ + msgpack-c \ + zlib \ + zstd && \ + rm -rf \ + /usr/local/include \ + /usr/local/lib/mecab/dic/naist-jdic/naist-jdic.csv \ + /usr/local/share/groonga/html \ + /usr/local/share/man