Skip to content

Commit

Permalink
disable PG 17 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
haobibo committed Dec 9, 2024
1 parent 611f21b commit f25470b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ jobs:
source ./tool.sh
build_image kafka latest docker_kafka_confluent/Dockerfile && push_image
qpod_postgres-17-ext:
name: "postgres-17-ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image postgres-17-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-17
push_image postgres
# qpod_postgres-17-ext: # some extension is not yet built for PG 17
# name: "postgres-17-ext"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - run: |
# source ./tool.sh
# build_image postgres-17-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-17
# push_image postgres

qpod_postgres-16-ext:
name: "postgres-16-ext"
Expand Down
8 changes: 4 additions & 4 deletions docker_postgres/rootfs/opt/utils/script-setup-pg_ext.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
echo "To install PG extensions: $(cat /opt/utils/install_list_pgext.apt)"
install_apt /opt/utils/install_list_pgext.apt

if [[ ${PG_MAJOR} == "15" ]]; then
# Fix pgagent for PG 15
rm -rf /usr/share/postgresql/15/extension/pgagent*
mv /usr/share/postgresql/16/extension/pgagent* /usr/share/postgresql/15/extension/
if [ ${PG_MAJOR} != "17" ]; then
# Fix pgagent for PG 15 / 16
rm -rf /usr/share/postgresql/${PG_MAJOR}/extension/pgagent*
mv /usr/share/postgresql/17/extension/pgagent* /usr/share/postgresql/${PG_MAJOR}/extension/
fi

mv /var/lib/postgresql/extension/* /usr/share/postgresql/${PG_MAJOR}/extension/
Expand Down

0 comments on commit f25470b

Please sign in to comment.