oci-images/psql (sha256:ea71d09ff0275453101000f2160138358d479b04426931da5460beb767a48fc3)

Published 2026-03-09 04:01:03 +01:00 by roshless in infra/oci-images

Installation

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

Image layers

ADD alpine-minirootfs-3.23.3-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add postgresql-client # buildkit
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-03-09T03:00:52.318Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 79c696ce2141179ff638e71261eedc73419e73db
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 202603090400
Details
Container
2026-03-09 04:01:03 +01:00
28
OCI / Docker
linux/amd64
8.7 MiB
Versions (3) View all
latest 2026-03-09
202603090400 2026-03-09
202603020359 2026-03-02