Skip to content

Commit

Permalink
Add PG17 to docker workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Oct 8, 2024
1 parent b9231e6 commit 67a6992
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/bitnami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: false
env:
ORG: timescale #timescaledev
TS_VERSION: ${{ github.event.inputs.version || '2.15.0' }}
TS_VERSION: ${{ github.event.inputs.version || '2.17.0' }}
jobs:

# Build bitnami images of TimscaleDB.
Expand All @@ -31,6 +31,9 @@ jobs:
matrix:
pg: [14, 15, 16]
base-image: [postgresql, postgresql-repmgr]
include:
- pg: 17
base-image: postgresql

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: false
env:
ORG: timescale #timescaledev
TS_VERSION: ${{ github.event.inputs.version || '2.15.0' }}
TS_VERSION: ${{ github.event.inputs.version || '2.17.0' }}
jobs:

# Build multi-arch TimescaleDB images for both TSL and OSS code.
Expand All @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pg: [14, 15, 16]
pg: [14, 15, 16, 17]
oss: [ "", "-oss" ]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pg: [14, 15, 16]
pg: [14, 15, 16, 17]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pg: [14, 15, 16]
pg: [14, 15, 16, 17]
type: ['normal', 'repmgr-bitnami', 'bitnami']
steps:
- name: Check out the source
Expand Down
41 changes: 23 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,37 @@ LABEL maintainer="Timescale https://www.timescale.com"

ARG PG_VERSION
RUN set -ex; \
apk update; \
apk add --no-cache \
postgresql${PG_VERSION}-plpython3
if [ "$PG_VERSION" -lt 17 ]; then \
apk update; \
apk add --no-cache \
postgresql${PG_VERSION}-plpython3; \
fi

ARG PGVECTOR_VERSION
ARG PG_VERSION
RUN set -ex; \
apk update; \
apk add --no-cache --virtual .vector-deps \
postgresql${PG_VERSION}-dev \
git \
build-base \
clang15 \
llvm15-dev \
llvm15; \
git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; \
cd /build/pgvector; \
make; \
make install; \
apk del .vector-deps
if [ "$PG_VERSION" -lt 17 ]; then \
apk update; \
apk add --no-cache --virtual .vector-deps \
postgresql${PG_VERSION}-dev \
git \
build-base \
clang15 \
llvm15-dev \
llvm15; \
git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; \
cd /build/pgvector; \
make; \
make install; \
apk del .vector-deps; \
fi

# install pgai only on pg16+ and not on 32 bit arm
# install pgai only on pg16 and not on 32 bit arm
ARG PGAI_VERSION
ARG PG_MAJOR_VERSION
ARG TARGETARCH
RUN set -ex; \
if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$TARGETARCH" != "arm" ]; then \
if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then \
apk update; \
apk add --no-cache --virtual .pgai-deps \
git \
Expand Down

0 comments on commit 67a6992

Please sign in to comment.