Skip to content

Commit f722f38

Browse files
authored
Merge pull request #92 from cwayne18/harden
Harden
2 parents ff7a7a2 + 33f5447 commit f722f38

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ RUN set -x && \
1919
mercurial \
2020
subversion \
2121
unzip
22+
ARG PROTOC_AARCH64_SHA256="ceb29d4890a31ba871829d22c2b7fa28f237d2b91ce4ea2a53e893d60a1cd502"
23+
ARG PROTOC_X86_64_SHA256="d4246a5136cf9cd1abc851c521a1ad6b8884df4feded8b9cbd5e2a2226d4b357"
2224
RUN if [ "${TARGETARCH}" == "arm64" ]; then \
2325
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-aarch_64.zip; \
26+
echo "${PROTOC_AARCH64_SHA256} protoc-3.17.3-linux-aarch_64.zip" | sha256sum -c -; \
2427
unzip protoc-3.17.3-linux-aarch_64.zip -d /usr; \
2528
else \
2629
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip; \
30+
echo "${PROTOC_X86_64_SHA256} protoc-3.17.3-linux-x86_64.zip" | sha256sum -c -; \
2731
unzip protoc-3.17.3-linux-x86_64.zip -d /usr; \
2832
fi
2933
# setup containerd build

Dockerfile.windows

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ RUN set -x && \
2020
subversion \
2121
mingw-w64-gcc \
2222
unzip
23+
ARG PROTOC_X86_64_SHA256="d4246a5136cf9cd1abc851c521a1ad6b8884df4feded8b9cbd5e2a2226d4b357"
2324
RUN curl -LO https://github.com/google/protobuf/releases/download/v3.17.3/protoc-3.17.3-linux-x86_64.zip; \
25+
echo "${PROTOC_X86_64_SHA256} protoc-3.17.3-linux-x86_64.zip" | sha256sum -c -; \
2426
unzip protoc-3.17.3-linux-x86_64.zip -d /usr;
2527
# setup containerd build
2628
ARG SRC="github.com/k3s-io/containerd"

0 commit comments

Comments
 (0)