Sign inSign up

jfxs/postgres-client

By jfxs

•Updated 5 days ago

An Alpine image with Postgres client

Image
Databases & storage
0

10K+

jfxs/postgres-client repository overview

⁠Docker Postgres client

Software License Pipeline Status

A Postgres client⁠ Docker image:

  • lightweight image based on Alpine Linux only 10 MB,
  • multiarch with support of amd64 and arm64,
  • non-root container user,
  • automatically updated: Renovate tracks the Alpine and postgresql16-client versions and opens the merge requests,
  • image signed with Cosign⁠,
  • a software bill of materials (SBOM) attestation added using Syft⁠,
  • the complete SBOM, with its known vulnerabilities, published on sbom-docker⁠,
  • available on Docker Hub and Quay.io.

GitLab The main repository.

Docker Hub The Docker Hub registry.

Quay.io The Quay.io registry.

⁠Running psql

docker run -t --rm jfxs/postgres-client psql --version

or

docker run -t --rm quay.io/ifxs/postgres-client psql --version

⁠Built with

Docker latest tag is 16.15-r0-001, 16.15-r0, 16⁠.

The complete software bill of materials (SBOM) of each published image, with its known vulnerabilities, is collected in the sbom-docker⁠ repository, under the component postgres-client.

Dockerhub Overview page⁠ has the details of the last published image.

⁠Versioning

Docker tag definition:

  • the postgresql16-client apk package version used (including the Alpine revision, e.g. 16.15-r0),
  • a dash
  • an increment to differentiate build with the same version starting at 001
<postgresql16_client_version>-<increment>

Example: 16.15-r0-001

Each published image gets the following tags:

TagMeaning
16.15-r0-001Full version with the build increment, never moves.
16.15-r0Latest build of this postgresql16-client package version.
16Latest build of the PostgreSQL 16 client.
latestLatest published build.

Breaking change: the tag scheme changed when the image moved to Renovate and the op_so GitLab components. The tags 16.14.0-NNN and 16.14 are no longer updated, and no <major>.<minor> tag is published anymore (16.15 does not exist). To follow updates, use 16, 16.15-r0 or latest.

⁠Signature and attestation

Cosign⁠ public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----

The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub⁠.

To verify an image:

cosign verify --key cosign.pub $IMAGE_URI

To verify and get the SBOM attestation:

cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'

⁠Authors

⁠License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE⁠ for details.

Tag summary

Content type

Image

Digest

sha256:7ba1ca020…

Size

9 MB

Last updated

5 days ago

docker pull jfxs/postgres-client