From 453375f9f4ad2a5f5f5c856cdd3409a097490ca4 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Wed, 9 Oct 2024 10:23:01 -0300 Subject: [PATCH] fix: fix entrypoint --- .github/workflows/postgres-16.yaml | 2 ++ .github/workflows/postgres-17.yaml | 2 ++ 16/Dockerfile | 2 +- 17/Dockerfile | 2 +- docker-entrypoint.sh | 0 5 files changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 docker-entrypoint.sh diff --git a/.github/workflows/postgres-16.yaml b/.github/workflows/postgres-16.yaml index 613fee3..ae59b72 100644 --- a/.github/workflows/postgres-16.yaml +++ b/.github/workflows/postgres-16.yaml @@ -6,11 +6,13 @@ on: - main paths: - "16/Dockerfile" + - "docker-entrypoint.sh" pull_request: branches: - main paths: - "16/Dockerfile" + - "docker-entrypoint.sh" jobs: docker: diff --git a/.github/workflows/postgres-17.yaml b/.github/workflows/postgres-17.yaml index 5d02517..fddc5fc 100644 --- a/.github/workflows/postgres-17.yaml +++ b/.github/workflows/postgres-17.yaml @@ -6,11 +6,13 @@ on: - main paths: - "17/Dockerfile" + - "docker-entrypoint.sh" pull_request: branches: - main paths: - "17/Dockerfile" + - "docker-entrypoint.sh" jobs: docker: diff --git a/16/Dockerfile b/16/Dockerfile index 68ece74..78871f3 100644 --- a/16/Dockerfile +++ b/16/Dockerfile @@ -8,7 +8,7 @@ RUN apk update && apk add --no-cache git gcc musl-dev \ # TimescaleDB extension FROM docker.io/timescale/timescaledb:2.17.0-pg16-bitnami AS timescaledb -# Select and copy the last 3 versions of the extension +# Select and copy the last 3 versions of the extension RUN cd /opt/bitnami/postgresql/lib \ && cp timescaledb.so /tmp \ && cp -r $(ls . | grep timescaledb- | sort | tail -n 3) /tmp \ diff --git a/17/Dockerfile b/17/Dockerfile index f2fbfcf..6f92154 100644 --- a/17/Dockerfile +++ b/17/Dockerfile @@ -8,7 +8,7 @@ RUN apk update && apk add --no-cache git gcc musl-dev \ # TimescaleDB extension FROM docker.io/timescale/timescaledb:2.17.0-pg17-bitnami AS timescaledb -# Select and copy the last 3 versions of the extension +# Select and copy the last 3 versions of the extension RUN cd /opt/bitnami/postgresql/lib \ && cp timescaledb.so /tmp \ && cp -r $(ls . | grep timescaledb- | sort | tail -n 3) /tmp \ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh old mode 100644 new mode 100755