From a2f003c760aa08e008cca7e5405f6fde713be9b4 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Wed, 31 Jul 2024 10:30:29 -0400 Subject: [PATCH] Update Restic to 0.17.0 --- restic | 8 +++++--- restic-psql | 8 +++++--- restic-server | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/restic b/restic index f83c9ff..d1f6e22 100644 --- a/restic +++ b/restic @@ -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 RUN apt-get update -yy && \ @@ -5,11 +7,11 @@ RUN apt-get update -yy && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -ARG RESTIC_VERSION=0.16.5 +ARG RESTIC_VERSION=0.17.0 ARG TARGETPLATFORM -RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=f1a9c39d396d1217c05584284352f4a3bef008be5d06ce1b81a6cf88f6f3a7b1; \ - elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=41cc6ad3ac5e99ee088011f628fafcb4fa1e4d3846be2333e5c2a3f6143cd0c1; \ +RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022; \ + elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=f9ad4d91c181da2968ccdecb5238bf872f824fe1e40253f3347c4025192f19c9; \ 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 && \ printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \ diff --git a/restic-psql b/restic-psql index bb6f36a..502b437 100644 --- a/restic-psql +++ b/restic-psql @@ -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 RUN apt-get update -yy && \ @@ -5,11 +7,11 @@ RUN apt-get update -yy && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -ARG RESTIC_VERSION=0.16.5 +ARG RESTIC_VERSION=0.17.0 ARG TARGETPLATFORM -RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=f1a9c39d396d1217c05584284352f4a3bef008be5d06ce1b81a6cf88f6f3a7b1; \ - elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=41cc6ad3ac5e99ee088011f628fafcb4fa1e4d3846be2333e5c2a3f6143cd0c1; \ +RUN if [ ${TARGETPLATFORM} = "linux/amd64" ]; then SUFFIX=linux_amd64; HASH=fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022; \ + elif [ ${TARGETPLATFORM} = "linux/arm64" ]; then SUFFIX=linux_arm64; HASH=f9ad4d91c181da2968ccdecb5238bf872f824fe1e40253f3347c4025192f19c9; \ 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 && \ printf "${HASH} /tmp/restic.bz2\\n" | sha256sum -c && \ diff --git a/restic-server b/restic-server index 2dd8065..4f1b0a7 100644 --- a/restic-server +++ b/restic-server @@ -1,7 +1,7 @@ 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 && \ - printf "3d4d43c169a9e28ea76303b1e8b810f0dcede7478555fdaa8959971ad499e324 /restic.bz2\\n" | sha256sum -c && \ +RUN curl -fLo /restic.bz2 https://github.com/restic/restic/releases/download/v0.17.0/restic_0.17.0_linux_amd64.bz2 && \ + printf "fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022 /restic.bz2\\n" | sha256sum -c && \ bunzip2 /restic.bz2 && \ chmod +x /restic