Skip to content

Commit e157d98

Browse files
committed
Add checksum and checksum check
1 parent 9982f36 commit e157d98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ ARG POSTGRESQL_VERSION="13"
22
FROM bitnami/postgresql:$POSTGRESQL_VERSION
33
LABEL org.opencontainers.image.source="https://github.com/dbsystel/postgresql-partman-container"
44
ARG PARTMAN_VERSION="v4.7.3"
5+
ARG PARTMAN_CHECKSUM="c0db6784e2d337645d8a1a89eb947635e547eab2be24545ebc52f02ee98098648cc00ae86adf677b196023e9290522a30b87b02081f782bfc8de4bd30c39980c"
56
USER root
67
RUN install_packages wget gcc make build-essential
78
RUN cd /tmp \
89
&& wget "https://github.com/pgpartman/pg_partman/archive/refs/tags/${PARTMAN_VERSION}.tar.gz" \
10+
&& echo "${PARTMAN_CHECKSUM} ${PARTMAN_VERSION}.tar.gz" | sha512sum --check \
911
&& export C_INCLUDE_PATH=/opt/bitnami/postgresql/include/:/opt/bitnami/common/include/ \
1012
&& export LIBRARY_PATH=/opt/bitnami/postgresql/lib/:/opt/bitnami/common/lib/ \
1113
&& export LD_LIBRARY_PATH=/opt/bitnami/postgresql/lib/:/opt/bitnami/common/lib/ \

0 commit comments

Comments
 (0)