Open
Description
I'm not 100% sure if you'd consider this a bug or something that was only working accidentally: Some images contain variables like PG_MAJOR
, for example the 17.5
tag does. However, others, like 17.5-standard-bookworm
do not. It's a nice variable to rely on when adding more custom extension in my own build process, but they're missing on the bookworm image I find myself needing for the VectorChord extension.
% docker run --rm --entrypoint bash ghcr.io/cloudnative-pg/postgresql:17.5 -c 'env | grep PG_MAJOR'
PG_MAJOR=17
% docker run --rm --entrypoint bash ghcr.io/cloudnative-pg/postgresql:17.5-standard-bullseye -c 'env | grep PG_MAJOR'
% docker run --rm --entrypoint bash ghcr.io/cloudnative-pg/postgresql:17.5-standard-bookworm -c 'env | grep PG_MAJOR'
% docker run --rm --entrypoint bash ghcr.io/cloudnative-pg/postgresql:17.5-minimal-bullseye -c 'env | grep PG_MAJOR'
Only the first command produces this output, the others don't have that variable.