Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Jun 26, 2024
1 parent 0b588ce commit f1dada3
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 34 deletions.
24 changes: 17 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
ARG ARM_TTK_NAME='master.zip'
ARG ARM_TTK_URI='https://github.com/Azure/arm-ttk/archive/master.zip'
ARG ARM_TTK_DIRECTORY='/opt/microsoft'
Expand All @@ -84,6 +90,10 @@ ARG DETEKT_VERSION=1.23.6
# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.22.0'

# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=3.25.0
# renovate: datasource=npm depName=lightning-flow-scanner
ARG LIGHTNING_FLOW_SCANNER_VERSION=2.27.0
#ARG__END

# Static args
Expand Down Expand Up @@ -231,7 +241,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli \
@salesforce/cli@${SALESFORCE_CLI_VERSION} \
typescript \
@stoplight/spectral-cli \
@coffeelint/cli \
Expand Down Expand Up @@ -491,8 +501,8 @@ ENV PATH="/root/.composer/vendor/bin:${PATH}"
# ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
# Next line commented because already managed by another linter
# ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

Expand Down Expand Up @@ -723,24 +733,24 @@ RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh |
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# sfdx-scanner-apex installation
&& sf plugins install @salesforce/sfdx-scanner \
&& sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# sfdx-scanner-aura installation
# Next line commented because already managed by another linter
# RUN sf plugins install @salesforce/sfdx-scanner \
# RUN sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
# && npm cache clean --force || true \
# && rm -rf /root/.npm/_cacache

# sfdx-scanner-lwc installation
# Next line commented because already managed by another linter
# RUN sf plugins install @salesforce/sfdx-scanner \
# RUN sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
# && npm cache clean --force || true \
# && rm -rf /root/.npm/_cacache

# lightning-flow-scanner installation
&& echo y|sf plugins install lightning-flow-scanner \
&& echo y|sf plugins install lightning-flow-scanner@{LIGHTNING_FLOW_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

Expand Down
24 changes: 17 additions & 7 deletions flavors/salesforce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,19 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START
# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
# renovate: datasource=github-tags depName=detekt/detekt
ARG DETEKT_VERSION=1.23.6

# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=3.25.0
# renovate: datasource=npm depName=lightning-flow-scanner
ARG LIGHTNING_FLOW_SCANNER_VERSION=2.27.0
#ARG__END

# Static args
Expand Down Expand Up @@ -158,7 +168,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli \
@salesforce/cli@${SALESFORCE_CLI_VERSION} \
@stoplight/spectral-cli \
jscpd \
stylelint \
Expand Down Expand Up @@ -246,8 +256,8 @@ ENV PATH="$JAVA_HOME/bin:${PATH}"
# ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
# Next line commented because already managed by another linter
# ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

Expand Down Expand Up @@ -319,24 +329,24 @@ RUN curl --retry 5 --retry-delay 5 -sSLO https://github.com/pinterest/ktlint/rel
# Managed with COPY --link --from=trufflehog /usr/bin/trufflehog /usr/bin/

# sfdx-scanner-apex installation
&& sf plugins install @salesforce/sfdx-scanner \
&& sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# sfdx-scanner-aura installation
# Next line commented because already managed by another linter
# RUN sf plugins install @salesforce/sfdx-scanner \
# RUN sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
# && npm cache clean --force || true \
# && rm -rf /root/.npm/_cacache

# sfdx-scanner-lwc installation
# Next line commented because already managed by another linter
# RUN sf plugins install @salesforce/sfdx-scanner \
# RUN sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
# && npm cache clean --force || true \
# && rm -rf /root/.npm/_cacache

# lightning-flow-scanner installation
&& echo y|sf plugins install lightning-flow-scanner \
&& echo y|sf plugins install lightning-flow-scanner@{LIGHTNING_FLOW_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache

Expand Down
17 changes: 12 additions & 5 deletions linters/salesforce_lightning_flow_scanner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START

# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
# renovate: datasource=npm depName=lightning-flow-scanner
ARG LIGHTNING_FLOW_SCANNER_VERSION=2.27.0
#ARG__END

# Static args
Expand Down Expand Up @@ -105,7 +112,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli && \
@salesforce/cli@${SALESFORCE_CLI_VERSION} && \
echo "Cleaning npm cache…" \
&& npm cache clean --force || true \
&& echo "Changing owner of node_modules files…" \
Expand Down Expand Up @@ -147,13 +154,13 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
# SALESFORCE installation
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# lightning-flow-scanner installation
&& echo y|sf plugins install lightning-flow-scanner \
&& echo y|sf plugins install lightning-flow-scanner@{LIGHTNING_FLOW_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache

Expand Down
17 changes: 12 additions & 5 deletions linters/salesforce_sfdx_scanner_apex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START

# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=3.25.0
#ARG__END

# Static args
Expand Down Expand Up @@ -105,7 +112,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli && \
@salesforce/cli@${SALESFORCE_CLI_VERSION} && \
echo "Cleaning npm cache…" \
&& npm cache clean --force || true \
&& echo "Changing owner of node_modules files…" \
Expand Down Expand Up @@ -147,13 +154,13 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
# SALESFORCE installation
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# sfdx-scanner-apex installation
&& sf plugins install @salesforce/sfdx-scanner \
&& sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache

Expand Down
17 changes: 12 additions & 5 deletions linters/salesforce_sfdx_scanner_aura/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START

# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=3.25.0
#ARG__END

# Static args
Expand Down Expand Up @@ -105,7 +112,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli && \
@salesforce/cli@${SALESFORCE_CLI_VERSION} && \
echo "Cleaning npm cache…" \
&& npm cache clean --force || true \
&& echo "Changing owner of node_modules files…" \
Expand Down Expand Up @@ -147,13 +154,13 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
# SALESFORCE installation
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# sfdx-scanner-aura installation
&& sf plugins install @salesforce/sfdx-scanner \
&& sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache

Expand Down
17 changes: 12 additions & 5 deletions linters/salesforce_sfdx_scanner_lwc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ FROM python:3.12.4-alpine3.20
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START

# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.47.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.6.1
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.40.1
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=3.25.0
#ARG__END

# Static args
Expand Down Expand Up @@ -105,7 +112,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
#NPM__START
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
@salesforce/cli && \
@salesforce/cli@${SALESFORCE_CLI_VERSION} && \
echo "Cleaning npm cache…" \
&& npm cache clean --force || true \
&& echo "Changing owner of node_modules files…" \
Expand Down Expand Up @@ -147,13 +154,13 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
# SALESFORCE installation
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
&& echo y|sf plugins install sfdx-hardis \
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache \

# sfdx-scanner-lwc installation
&& sf plugins install @salesforce/sfdx-scanner \
&& sf plugins install @salesforce/sfdx-scanner@{SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache

Expand Down

0 comments on commit f1dada3

Please sign in to comment.