dbsystel / postgresql-partman-container

This repo is meant to provide an OCI container image that is based on the popular bitnami/postgresql image, that comes preinstalled with the pg_partman PostgreSQL extension.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check hashsum of partman download

mxmehl opened this issue · comments

Thank you for this project!

When downloading packages from a website, one should check their hashsums to verify integrity and authenticity.

So e.g. the sha256sum should be an ARG in the Dockerfile and later be checked after the download and before the install. Here are some examples.

ARG PARTMAN_VERSION="v4.7.3"
USER root
RUN install_packages wget gcc make build-essential
RUN cd /tmp \
&& wget "https://github.com/pgpartman/pg_partman/archive/refs/tags/${PARTMAN_VERSION}.tar.gz" \