diff --git a/README.md b/README.md index b262540..e7e24db 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,19 @@ your package manager): && gpg --batch --verify /tini.asc /tini +### Verifying binaries via checksum ### + +The `tini` and `tini-static` binaries have generated checksums (`SHA1` and `SHA256`). + +You can verify their checksums using `sha1sum` and `sha256sum` (which you may install using +your package manager): + + ENV TINI_VERSION v0.19.0 + RUN wget --no-check-certificate --no-cookies --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64 \ + && wget --no-check-certificate --no-cookies --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64.sha256sum \ + && echo "$(cat tini-amd64.sha256sum)" | sha256sum -c + + ### Alpine Linux Package ### On Alpine Linux, you can use the following command to install Tini: diff --git a/tpl/README.md.in b/tpl/README.md.in index 71acc13..3f95895 100644 --- a/tpl/README.md.in +++ b/tpl/README.md.in @@ -92,6 +92,19 @@ your package manager): && gpg --batch --verify /tini.asc /tini +### Verifying binaries via checksum ### + +The `tini` and `tini-static` binaries have generated checksums (`SHA1` and `SHA256`). + +You can verify their checksums using `sha1sum` and `sha256sum` (which you may install using +your package manager): + + ENV TINI_VERSION v@tini_VERSION_MAJOR@.@tini_VERSION_MINOR@.@tini_VERSION_PATCH@ + RUN wget --no-check-certificate --no-cookies --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64 \ + && wget --no-check-certificate --no-cookies --quiet https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-amd64.sha256sum \ + && echo "$(cat tini-amd64.sha256sum)" | sha256sum -c + + ### Alpine Linux Package ### On Alpine Linux, you can use the following command to install Tini: