Skip to content

PG_MAJOR missing from most Docker images #224

Open
@Javex

Description

@Javex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions