Add Percona pg_tde (TDE) Dockerfile for postgres 17.9 bookworm - #1
Open
souravbiswassanto wants to merge 4 commits into
Open
Add Percona pg_tde (TDE) Dockerfile for postgres 17.9 bookworm#1souravbiswassanto wants to merge 4 commits into
souravbiswassanto wants to merge 4 commits into
Conversation
Signed-off-by: souravbiswassanto <saurov@appscode.com>
Signed-off-by: souravbiswassanto <saurov@appscode.com>
Percona Server for PostgreSQL 17.9 with the pg_tde extension, laid out to match the official postgres:17-bookworm runtime contract (uid/gid 999, binaries under /usr/lib/postgresql/17/bin, upstream docker-entrypoint.sh + gosu, same PGDATA/locale/VOLUME/STOPSIGNAL/EXPOSE). Sourced from https://github.com/kubedb/postgres-docker/tree/release-17.9-percona with the entrypoint donor switched to ghcr.io/appscode-images/postgres:17.9-bookworm and the Percona minor pinned to 2:17.9-1.bookworm so the tag is truthful. Signed-off-by: souravbiswassanto <saurov@appscode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tde/17.9/bookworm/Dockerfile, following the same layout convention as theexisting
ext/<version>/<distro>/anddhi/<version>/<distro>/trees, so thebuilder can produce a
17.9-perconatag.What it is
Percona Server for PostgreSQL 17.9 +
pg_tde.KubeDB's Transparent Data Encryption support needs
pg_tde, whosetde_heapaccess method only works on the Percona fork — not community PostgreSQL — so it
cannot run on the stock
postgres:<major>-bookwormimage.The Dockerfile keeps the exact runtime contract KubeDB already relies on:
postgresuser/group at uid/gid 999PATHat/usr/lib/postgresql/17/bindocker-entrypoint.sh, initdb helpers andgosu, copied verbatimfrom
ghcr.io/appscode-images/postgres:17.9-bookwormPGDATA, locale,VOLUME,STOPSIGNAL SIGINT,EXPOSE 5432Source
Taken from https://github.com/kubedb/postgres-docker/tree/release-17.9-percona
with three changes so it fits this repo and the builder:
ghcr.io/appscode-images/postgres:17.9-bookworminstead of Docker Hub
postgres:17-bookworm— matches what theextDockerfiles do and keeps the minor aligned with the tag
PG_VERSIONdefaults to2:17.9-1.bookworm(the builder passes no--build-arg, so the pin has to be the default for the tag to be truthful)org.opencontainers.image.sourcelabel points at this repoVerified
Built locally for
linux/amd64:percona-postgresql-17/percona-pg-tde17are published for bothamd64andarm64inrepo.percona.com/ppg-17/apt(bookworm), and the base image has bothplatforms, so the multi-arch builder job is satisfied.
Note on the branch
This branch stacks on
6447b6c(the existing, not-yet-mergedext+dhicommits), same lineage the
ext.json/dhi.jsonblocks point at, so the diffagainst
masteralso shows those earlier files. Onlytde/17.9/bookworm/Dockerfileis new here.Builder side: appscode-images/builder#109