Skip to content

Commit

Permalink
Removes pgaudit-16, postgres-16-bitnami-compat from wolfi (#32160)
Browse files Browse the repository at this point in the history
Signed-off-by: Srishti Hegde <[email protected]>
  • Loading branch information
srishtih authored Oct 29, 2024
1 parent 2055ae0 commit 66eb754
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 53 deletions.
40 changes: 0 additions & 40 deletions pgaudit-16.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: postgresql-16-bitnami-compat
version: "16.4"
epoch: 2
name: postgresql-17-bitnami-compat
version: "17.0"
epoch: 0
description: "compat package with postgresql image"
copyright:
- license: BSD-3-Clause
Expand All @@ -13,20 +13,20 @@ package:
# Required by startup scripts
- busybox
- net-tools
- pgaudit-16
- postgresql-16
- pgaudit-17
- postgresql-17

environment:
contents:
packages:
- busybox
- postgresql-16-base
- postgresql-17-base

pipeline:
- uses: bitnami/compat
with:
image: postgresql
version-path: 16/debian-12
version-path: 17/debian-12

- runs: |
mkdir -p ${{targets.contextdir}}/opt/bitnami/postgresql/conf
Expand All @@ -35,8 +35,8 @@ pipeline:
mkdir -p ${{targets.contextdir}}/opt/bitnami/postgresql/share
# Copy sample configs used to generate Bitnami config
cp /usr/share/postgresql16/pg_hba.conf.sample ${{targets.contextdir}}/opt/bitnami/postgresql/share/pg_hba.conf.sample
cp /usr/share/postgresql16/postgresql.conf.sample ${{targets.contextdir}}/opt/bitnami/postgresql/share/postgresql.conf.sample
cp /usr/share/postgresql17/pg_hba.conf.sample ${{targets.contextdir}}/opt/bitnami/postgresql/share/pg_hba.conf.sample
cp /usr/share/postgresql17/postgresql.conf.sample ${{targets.contextdir}}/opt/bitnami/postgresql/share/postgresql.conf.sample
# Use package path while unpacking
find . -iname "*.sh" -exec sed 's#/opt/bitnami#${{targets.contextdir}}/opt/bitnami#g' -i {} \;
Expand All @@ -48,10 +48,10 @@ pipeline:
rm ${{targets.contextdir}}/opt/bitnami/postgresql/share/*.sample
# Link binaries used by Bitnami config
ln -sf /usr/libexec/postgresql16/initdb ${{targets.contextdir}}/opt/bitnami/postgresql/bin/initdb
ln -sf /usr/libexec/postgresql16/pg_ctl ${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_ctl
ln -sf /usr/libexec/postgresql16/pg_rewind ${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_rewind
ln -sf /usr/libexec/postgresql16/pg_isready /${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_isready
ln -sf /usr/libexec/postgresql17/initdb ${{targets.contextdir}}/opt/bitnami/postgresql/bin/initdb
ln -sf /usr/libexec/postgresql17/pg_ctl ${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_ctl
ln -sf /usr/libexec/postgresql17/pg_rewind ${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_rewind
ln -sf /usr/libexec/postgresql17/pg_isready /${{targets.contextdir}}/opt/bitnami/postgresql/bin/pg_isready
test:
pipeline:
Expand Down

0 comments on commit 66eb754

Please sign in to comment.