File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,27 @@ RUN set -eux; \
28
28
case "${ARCH}" in \
29
29
aarch64|arm64) \
30
30
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; \
31
32
;; \
32
33
amd64|x86_64) \
33
34
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; \
34
36
;; \
35
37
ppc64el|ppc64le) \
36
38
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; \
37
40
;; \
38
41
s390x) \
39
42
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; \
40
44
;;\
41
45
*) \
42
46
echo "Unsupported arch: ${ARCH}"; \
43
47
exit 1; \
44
48
;; \
45
49
esac; \
46
50
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
51
+ echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
47
52
chmod +x /usr/bin/dumb-init;
48
53
49
54
# Install Open Liberty
Original file line number Diff line number Diff line change @@ -20,26 +20,31 @@ COPY fixes/ /opt/ol/fixes/
20
20
21
21
# Install dumb-init
22
22
RUN set -eux; \
23
- ARCH="$(uname -m )"; \
23
+ ARCH="$(dpkg --print-architecture )"; \
24
24
case "${ARCH}" in \
25
25
aarch64|arm64) \
26
26
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; \
27
28
;; \
28
29
amd64|x86_64) \
29
30
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; \
30
32
;; \
31
33
ppc64el|ppc64le) \
32
34
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; \
33
36
;; \
34
37
s390x) \
35
38
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; \
36
40
;;\
37
41
*) \
38
42
echo "Unsupported arch: ${ARCH}"; \
39
43
exit 1; \
40
44
;; \
41
45
esac; \
42
46
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
47
+ echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
43
48
chmod +x /usr/bin/dumb-init;
44
49
45
50
# Install Open Liberty
Original file line number Diff line number Diff line change @@ -20,26 +20,31 @@ COPY fixes/ /opt/ol/fixes/
20
20
21
21
# Install dumb-init
22
22
RUN set -eux; \
23
- ARCH="$(uname -m )"; \
23
+ ARCH="$(dpkg --print-architecture )"; \
24
24
case "${ARCH}" in \
25
25
aarch64|arm64) \
26
26
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; \
27
28
;; \
28
29
amd64|x86_64) \
29
30
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; \
30
32
;; \
31
33
ppc64el|ppc64le) \
32
34
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; \
33
36
;; \
34
37
s390x) \
35
38
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; \
36
40
;;\
37
41
*) \
38
42
echo "Unsupported arch: ${ARCH}"; \
39
43
exit 1; \
40
44
;; \
41
45
esac; \
42
46
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
47
+ echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
43
48
chmod +x /usr/bin/dumb-init;
44
49
45
50
# Install Open Liberty
Original file line number Diff line number Diff line change @@ -21,26 +21,31 @@ COPY fixes/ /opt/ol/fixes/
21
21
22
22
# Install dumb-init
23
23
RUN set -eux; \
24
- ARCH="$(uname -m )"; \
24
+ ARCH="$(dpkg --print-architecture )"; \
25
25
case "${ARCH}" in \
26
26
aarch64|arm64) \
27
27
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; \
28
29
;; \
29
30
amd64|x86_64) \
30
31
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; \
31
33
;; \
32
34
ppc64el|ppc64le) \
33
35
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; \
34
37
;; \
35
38
s390x) \
36
39
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; \
37
41
;;\
38
42
*) \
39
43
echo "Unsupported arch: ${ARCH}"; \
40
44
exit 1; \
41
45
;; \
42
46
esac; \
43
47
curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; \
48
+ echo "${DUBM_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; \
44
49
chmod +x /usr/bin/dumb-init;
45
50
46
51
# Install Open Liberty
You can’t perform that action at this time.
0 commit comments