@@ -127,7 +127,21 @@ RUN curl --retry-all-errors --retry 10 -fLo coursier https://git.io/coursier-cli
127
127
#
128
128
# bash-exec installation
129
129
&& printf '#!/bin/bash \n\n if [[ -x "$1" ]]; then exit 0; else echo "Error: File:[$1] is not executable"; exit 1; fi' > /usr/bin/bash-exec \
130
- && chmod +x /usr/bin/bash-exec \
130
+ && chmod +x /usr/bin/bash-exec
131
+
132
+ #
133
+ # pmd installation
134
+ ARG PMD_VERSION=6.55.0
135
+ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-bin-${PMD_VERSION}.zip && \
136
+ unzip pmd-bin-${PMD_VERSION}.zip && \
137
+ rm pmd-bin-${PMD_VERSION}.zip && \
138
+ mv pmd-bin-${PMD_VERSION} /usr/bin/pmd && \
139
+ chmod +x /usr/bin/pmd/bin/run.sh \
140
+ #
141
+ # ktlint installation
142
+ && curl --retry 5 --retry-delay 5 -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktlint && \
143
+ chmod a+x ktlint && \
144
+ mv "ktlint" /usr/bin/ \
131
145
#
132
146
# scalafix installation
133
147
&& ./coursier install scalafix --quiet --install-dir /usr/bin && rm -rf /root/.cache
@@ -242,6 +256,8 @@ COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
242
256
COPY --link --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker
243
257
COPY --link --from=dotenvlinter /dotenv-linter /usr/bin/dotenv-linter
244
258
COPY --link --from=revive /usr/bin/revive /usr/bin/revive
259
+ COPY --link --from=build-platform /usr/bin/pmd /usr/bin/pmd
260
+ COPY --link --from=build-platform /usr/bin/ktlint /usr/bin/ktlint
245
261
COPY --link --from=kubeconform /kubeconform /usr/bin/
246
262
COPY --link --from=chktex /usr/bin/chktex /usr/bin/
247
263
COPY --link --from=checkmake /checkmake /usr/bin/checkmake
@@ -507,7 +523,6 @@ ARG ARM_TTK_DIRECTORY='/opt/microsoft'
507
523
ARG BICEP_EXE='bicep'
508
524
ARG BICEP_DIR='/usr/local/bin'
509
525
ARG DART_VERSION='2.8.4'
510
- ARG PMD_VERSION=6.55.0
511
526
ARG PSSA_VERSION='latest'
512
527
# ARG__END
513
528
@@ -566,6 +581,8 @@ RUN apk add --no-cache \
566
581
libc6-compat \
567
582
openssl \
568
583
readline-dev \
584
+ lua \
585
+ luarocks \
569
586
g++ \
570
587
libc-dev \
571
588
libgcc \
@@ -877,39 +894,15 @@ RUN --mount=type=secret,id=GITHUB_TOKEN CHECKSTYLE_LATEST=$(curl -s \
877
894
--output /usr/bin/checkstyle
878
895
879
896
#
880
- # pmd installation
881
- RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-bin-${PMD_VERSION}.zip && \
882
- unzip pmd-bin-${PMD_VERSION}.zip && \
883
- rm pmd-bin-${PMD_VERSION}.zip && \
884
- mv pmd-bin-${PMD_VERSION} /usr/bin/pmd && \
885
- chmod +x /usr/bin/pmd/bin/run.sh \
886
- #
887
- # ktlint installation
888
- && curl --retry 5 --retry-delay 5 -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktlint && \
889
- chmod a+x ktlint && \
890
- mv "ktlint" /usr/bin/ \
891
- #
892
897
# kubescape installation
893
- && ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 && \
898
+ RUN ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 && \
894
899
curl --retry 5 --retry-delay 5 -sLv https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh | /bin/bash -s -- -v v2.3.6 \
895
900
#
896
901
# chktex installation
897
902
&& cd ~ && touch .chktexrc && cd / \
898
903
#
899
904
# luacheck installation
900
- && wget --tries=5 https://www.lua.org/ftp/lua-5.3.5.tar.gz -O - -q | tar -xzf - \
901
- && cd lua-5.3.5 \
902
- && make linux \
903
- && make install \
904
- && cd .. && rm -r lua-5.3.5/ \
905
- && wget --tries=5 https://github.com/cvega/luarocks/archive/v3.3.1-super-linter.tar.gz -O - -q | tar -xzf - \
906
- && cd luarocks-3.3.1-super-linter \
907
- && ./configure --with-lua-include=/usr/local/include \
908
- && make \
909
- && make -b install \
910
- && cd .. && rm -r luarocks-3.3.1-super-linter/ \
911
905
&& luarocks install luacheck \
912
- && cd / \
913
906
#
914
907
# perlcritic installation
915
908
&& curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wget Perl::Critic
0 commit comments