Skip to content

Commit 897ef0c

Browse files
authored
Verify the sha256 sum of dumb-init (#405)
1 parent 571c2d2 commit 897ef0c

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

releases/latest/beta/Dockerfile.ubi.openjdk17

+5
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ RUN set -eux; \
2828
case "${ARCH}" in \
2929
aarch64|arm64) \
3030
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64'; \
31+
DUBM_INIT_SHA256=b7d648f97154a99c539b63c55979cd29f005f88430fb383007fe3458340b795e; \
3132
;; \
3233
amd64|x86_64) \
3334
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64'; \
35+
DUBM_INIT_SHA256=e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df; \
3436
;; \
3537
ppc64el|ppc64le) \
3638
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_ppc64le'; \
39+
DUBM_INIT_SHA256=3d15e80e29f0f4fa1fc686b00613a2220bc37e83a35283d4b4cca1fbd0a5609f; \
3740
;; \
3841
s390x) \
3942
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_s390x'; \
43+
DUBM_INIT_SHA256=47e4601b152fc6dcb1891e66c30ecc62a2939fd7ffd1515a7c30f281cfec53b7; \
4044
;;\
4145
*) \
4246
echo "Unsupported arch: ${ARCH}"; \
4347
exit 1; \
4448
;; \
4549
esac; \
4650
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
51+
echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
4752
chmod +x /usr/bin/dumb-init;
4853

4954
# Install Open Liberty

releases/latest/beta/Dockerfile.ubuntu.openjdk11

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,31 @@ COPY fixes/ /opt/ol/fixes/
2020

2121
# Install dumb-init
2222
RUN set -eux; \
23-
ARCH="$(uname -m)"; \
23+
ARCH="$(dpkg --print-architecture)"; \
2424
case "${ARCH}" in \
2525
aarch64|arm64) \
2626
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64'; \
27+
DUBM_INIT_SHA256=b7d648f97154a99c539b63c55979cd29f005f88430fb383007fe3458340b795e; \
2728
;; \
2829
amd64|x86_64) \
2930
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64'; \
31+
DUBM_INIT_SHA256=e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df; \
3032
;; \
3133
ppc64el|ppc64le) \
3234
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_ppc64le'; \
35+
DUBM_INIT_SHA256=3d15e80e29f0f4fa1fc686b00613a2220bc37e83a35283d4b4cca1fbd0a5609f; \
3336
;; \
3437
s390x) \
3538
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_s390x'; \
39+
DUBM_INIT_SHA256=47e4601b152fc6dcb1891e66c30ecc62a2939fd7ffd1515a7c30f281cfec53b7; \
3640
;;\
3741
*) \
3842
echo "Unsupported arch: ${ARCH}"; \
3943
exit 1; \
4044
;; \
4145
esac; \
4246
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
47+
echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
4348
chmod +x /usr/bin/dumb-init;
4449

4550
# Install Open Liberty

releases/latest/beta/Dockerfile.ubuntu.openjdk17

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,31 @@ COPY fixes/ /opt/ol/fixes/
2020

2121
# Install dumb-init
2222
RUN set -eux; \
23-
ARCH="$(uname -m)"; \
23+
ARCH="$(dpkg --print-architecture)"; \
2424
case "${ARCH}" in \
2525
aarch64|arm64) \
2626
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64'; \
27+
DUBM_INIT_SHA256=b7d648f97154a99c539b63c55979cd29f005f88430fb383007fe3458340b795e; \
2728
;; \
2829
amd64|x86_64) \
2930
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64'; \
31+
DUBM_INIT_SHA256=e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df; \
3032
;; \
3133
ppc64el|ppc64le) \
3234
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_ppc64le'; \
35+
DUBM_INIT_SHA256=3d15e80e29f0f4fa1fc686b00613a2220bc37e83a35283d4b4cca1fbd0a5609f; \
3336
;; \
3437
s390x) \
3538
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_s390x'; \
39+
DUBM_INIT_SHA256=47e4601b152fc6dcb1891e66c30ecc62a2939fd7ffd1515a7c30f281cfec53b7; \
3640
;;\
3741
*) \
3842
echo "Unsupported arch: ${ARCH}"; \
3943
exit 1; \
4044
;; \
4145
esac; \
4246
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
47+
echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
4348
chmod +x /usr/bin/dumb-init;
4449

4550
# Install Open Liberty

releases/latest/beta/Dockerfile.ubuntu.openjdk8

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,31 @@ COPY fixes/ /opt/ol/fixes/
2121

2222
# Install dumb-init
2323
RUN set -eux; \
24-
ARCH="$(uname -m)"; \
24+
ARCH="$(dpkg --print-architecture)"; \
2525
case "${ARCH}" in \
2626
aarch64|arm64) \
2727
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64'; \
28+
DUBM_INIT_SHA256=b7d648f97154a99c539b63c55979cd29f005f88430fb383007fe3458340b795e; \
2829
;; \
2930
amd64|x86_64) \
3031
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64'; \
32+
DUBM_INIT_SHA256=e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df; \
3133
;; \
3234
ppc64el|ppc64le) \
3335
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_ppc64le'; \
36+
DUBM_INIT_SHA256=3d15e80e29f0f4fa1fc686b00613a2220bc37e83a35283d4b4cca1fbd0a5609f; \
3437
;; \
3538
s390x) \
3639
DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_s390x'; \
40+
DUBM_INIT_SHA256=47e4601b152fc6dcb1891e66c30ecc62a2939fd7ffd1515a7c30f281cfec53b7; \
3741
;;\
3842
*) \
3943
echo "Unsupported arch: ${ARCH}"; \
4044
exit 1; \
4145
;; \
4246
esac; \
4347
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
48+
echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
4449
chmod +x /usr/bin/dumb-init;
4550

4651
# Install Open Liberty

0 commit comments

Comments
 (0)