Update Restic to 0.17.0

This commit is contained in:
Remi Rampin 2024-07-31 10:30:29 -04:00
parent 7e310ae0ff
commit a2f003c760
3 changed files with 12 additions and 8 deletions

8
restic
View File

@ -1,3 +1,5 @@
# docker buildx build --pull - --platform linux/amd64,linux/arm64 --push --tag quay.io/remram44/restic:0.17.0 < restic
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt-get update -yy && \ RUN apt-get update -yy && \
@ -5,11 +7,11 @@ RUN apt-get update -yy && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ARG RESTIC_VERSION=0.16.5 ARG RESTIC_VERSION=0.17.0
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=f1a9c39d396d1217c05584284352f4a3bef008be5d06ce1b81a6cf88f6f3a7b1; \ RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022; \
elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=41cc6ad3ac5e99ee088011f628fafcb4fa1e4d3846be2333e5c2a3f6143cd0c1; \ elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=f9ad4d91c181da2968ccdecb5238bf872f824fe1e40253f3347c4025192f19c9; \
else echo "no URL for $(TARGETPLATFORM)"; exit 1; fi && \ else echo "no URL for $(TARGETPLATFORM)"; exit 1; fi && \
curl -Lo /tmp/restic.bz2 https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${SUFFIX}.bz2 && \ curl -Lo /tmp/restic.bz2 https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${SUFFIX}.bz2 && \
printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \ printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \

View File

@ -1,3 +1,5 @@
# docker buildx build --pull - --platform linux/amd64,linux/arm64 --push --tag quay.io/remram44/restic:0.17.0-psql16 < restic-psql
FROM postgres:16 FROM postgres:16
RUN apt-get update -yy && \ RUN apt-get update -yy && \
@ -5,11 +7,11 @@ RUN apt-get update -yy && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ARG RESTIC_VERSION=0.16.5 ARG RESTIC_VERSION=0.17.0
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=f1a9c39d396d1217c05584284352f4a3bef008be5d06ce1b81a6cf88f6f3a7b1; \ RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022; \
elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=41cc6ad3ac5e99ee088011f628fafcb4fa1e4d3846be2333e5c2a3f6143cd0c1; \ elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=f9ad4d91c181da2968ccdecb5238bf872f824fe1e40253f3347c4025192f19c9; \
else echo "no URL for $(TARGETPLATFORM)"; exit 1; fi && \ else echo "no URL for $(TARGETPLATFORM)"; exit 1; fi && \
curl -Lo /tmp/restic.bz2 https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${SUFFIX}.bz2 && \ curl -Lo /tmp/restic.bz2 https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_${SUFFIX}.bz2 && \
printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \ printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \

View File

@ -1,7 +1,7 @@
FROM python:3.12 AS client FROM python:3.12 AS client
RUN curl -fLo /restic.bz2 https://github.com/restic/restic/releases/download/v0.16.4/restic_0.16.4_linux_amd64.bz2 && \ RUN curl -fLo /restic.bz2 https://github.com/restic/restic/releases/download/v0.17.0/restic_0.17.0_linux_amd64.bz2 && \
printf "3d4d43c169a9e28ea76303b1e8b810f0dcede7478555fdaa8959971ad499e324 /restic.bz2\\n" | sha256sum -c && \ printf "fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022 /restic.bz2\\n" | sha256sum -c && \
bunzip2 /restic.bz2 && \ bunzip2 /restic.bz2 && \
chmod +x /restic chmod +x /restic