Skip to content

Commit

Permalink
Check restic binary SHA hash on download (#5819)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntolia authored and Ilya Kislenko committed Jun 14, 2019
1 parent ec60e05 commit 9c7f8c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM busybox:glibc as restbox

# Get restic executable
ENV RESTIC_VERSION=0.9.5
ENV RESTIC_SHA=08cd75e56a67161e9b16885816f04b2bf1fb5b03bc0677b0ccf3812781c1a2ec
ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 /
RUN bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic
RUN echo "${RESTIC_SHA} restic_${RESTIC_VERSION}_linux_amd64.bz2" | sha256sum -c \
&& bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic

FROM alpine:3.7
MAINTAINER Tom Manville <tom@kasten.io>
Expand Down

0 comments on commit 9c7f8c1

Please sign in to comment.