@@ -29,19 +29,16 @@ RUN microdnf install -y findutils tar gzip
2929# The tini GitHub page gives instructions for verifying the binary using
3030# gpg, but the keyservers are slow to return the key and this can fail the
3131# build. Instead, we check the binary against the published checksum.
32- RUN set -eux ; \\
33- tini_bin="" ; \\
34- arch="\$ (rpm --query --queryformat=' %{ARCH}' rpm)"; \
32+ RUN set -eux; \\
33+ arch="\$ (rpm --query --queryformat=' %{ARCH}' rpm)"; \\
3534 case "\$ (arch)" in \\
36- aarch64) tini_bin=' tini-arm64' ;; \\
37- x86_64) tini_bin=' tini-amd64' ;; \\
38- *) echo >&2 ; echo >&2 "Unsupported architecture \$ arch" ; echo >&2 ; exit 1 ;; \\
35+ aarch64) tini_bin=' tini-arm64'; tini_sum=' 07952557df20bfd2a95f9bef198b445e006171969499a1d361bd9e6f8e5e0e81 ' ;; \\
36+ x86_64) tini_bin=' tini-amd64'; tini_sum=' 93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c ' ;; \\
37+ *) echo >&2 "Unsupported architecture \$ arch"; exit 1 ;; \\
3938 esac ; \\
40- curl -f --retry 10 -S -L -O https://github.com/krallin/tini/releases/download/v0.19.0/\$ {tini_bin} ; \\
41- curl -f --retry 10 -S -L -O https://github.com/krallin/tini/releases/download/v0.19.0/\$ {tini_bin}.sha256sum ; \\
42- sha256sum -c \$ {tini_bin}.sha256sum ; \\
43- rm \$ {tini_bin}.sha256sum ; \\
44- mv \$ {tini_bin} /bin/tini ; \\
39+ curl -f --retry 10 -S -L -o /tmp/tini https://github.com/krallin/tini/releases/download/v0.19.0/\$ {tini_bin}; \\
40+ echo "\$ {tini_sum} /tmp/tini" | sha256sum -c -; \\
41+ mv /tmp/tini /bin/tini; \\
4542 chmod 0555 /bin/tini
4643
4744WORKDIR /usr/share/elasticsearch
@@ -147,8 +144,6 @@ LABEL name="Elasticsearch" \\
147144 summary="Elasticsearch" \\
148145 description="You know, for search."
149146
150- RUN mkdir /licenses && ln LICENSE.txt /licenses/LICENSE
151-
152147# Our actual entrypoint is `tini`, a minimal but functional init program. It
153148# calls the entrypoint we provide, while correctly forwarding signals.
154149ENTRYPOINT ["/bin/tini" , "--" , "/usr/local/bin/docker-entrypoint.sh" ]
0 commit comments