This commit is contained in:
Kreyren 2020-02-24 04:56:46 +00:00
parent dcae2fa992
commit 460ae8b48f
2 changed files with 2 additions and 0 deletions

@ -2,6 +2,7 @@ ignored:
- DL3007 # Usage of latest version is expected - DL3007 # Usage of latest version is expected
- DL3008 # Pinning specific version on apt is not sane - DL3008 # Pinning specific version on apt is not sane
- DL3015 # We don't mind recommended packages - DL3015 # We don't mind recommended packages
- DL4001 # Allow usage of curl and wget
- DL4006 # False-trigger on /bin/sh usage? - DL4006 # False-trigger on /bin/sh usage?
trustedRegistries: trustedRegistries:

@ -25,6 +25,7 @@ RUN apt-get update \
&& apt-get install -y rustc cargo pkg-config \ && apt-get install -y rustc cargo pkg-config \
&& : "Install hadolint if not available in downstream" \ && : "Install hadolint if not available in downstream" \
&& if ! apt-cache search hadolint | grep -qP "^hadolint -.*"; then { if ! command -v wget >/dev/null; then apt-get install -y wget; fi ;} && wget https://github.com/hadolint/hadolint/releases/download/v1.17.5/hadolint-Linux-x86_64 -O /usr/bin/hadolint && { [ ! -x /usr/bin/hadolint ] && chmod +x /usr/bin/hadolint ;}; elif apt-cache search hadolint | grep -qP "^hadolint -.*"; then apt-get install -y hadolint; fi \ && if ! apt-cache search hadolint | grep -qP "^hadolint -.*"; then { if ! command -v wget >/dev/null; then apt-get install -y wget; fi ;} && wget https://github.com/hadolint/hadolint/releases/download/v1.17.5/hadolint-Linux-x86_64 -O /usr/bin/hadolint && { [ ! -x /usr/bin/hadolint ] && chmod +x /usr/bin/hadolint ;}; elif apt-cache search hadolint | grep -qP "^hadolint -.*"; then apt-get install -y hadolint; fi \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh \
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*