oci-images/psql (sha256:e5dc4e3fa1255758d5d682a354ed61eb12849b9d176ca830a160954031cf4b5a)

Published 2026-11-02 23:20:03 +01:00 by roshless in infra/oci-images

Installation

docker pull git.roshless.me/infra/oci-images/psql@sha256:e5dc4e3fa1255758d5d682a354ed61eb12849b9d176ca830a160954031cf4b5a
sha256:e5dc4e3fa1255758d5d682a354ed61eb12849b9d176ca830a160954031cf4b5a

Image layers

ADD alpine-minirootfs-3.24.3-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache postgresql-client # buildkit
RUN /bin/sh -c addgroup -S appuser && adduser -S -G appuser -u 10001 appuser # buildkit
USER 10001
ENV PGHOST=localhost
ENV PGDATABASE=databasename
ENV PGUSER=username
ENV PGPASSWORD=password
ENV PGPORT=5432
ENV SQL_COMMAND=SELECT * FROM pg_catalog.pg_roles LIMIT 1;
CMD ["/bin/sh" "-c" "psql -c '${SQL_COMMAND}'"]

Labels

Key Value
org.opencontainers.image.created 2026-11-02T22:19:35.753Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 16e31cb1390d2ded24f0d951c81887501ab275e0
org.opencontainers.image.source https://git.roshless.me/infra/oci-images
org.opencontainers.image.title oci-images
org.opencontainers.image.url https://git.roshless.me/infra/oci-images
org.opencontainers.image.version 202611022318
Details
Container
2026-11-02 23:20:03 +01:00
4
OCI / Docker
linux/amd64
8.9 MiB
Versions (6) View all
202611022318 2026-11-02
latest 2026-11-02
202611020400 2026-11-02
202610260400 2026-10-26
202610190501 2026-10-19