mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
move to docker (#2176)
This commit is contained in:
parent
1ba1f7cec6
commit
162d8327e1
2 changed files with 13 additions and 16 deletions
14
Dockerfile
14
Dockerfile
|
@ -24,6 +24,7 @@ FROM garethr/kubeval:0.15.0 as kubeval
|
||||||
FROM ghcr.io/assignuser/lintr-lib:0.3.0 as lintr-lib
|
FROM ghcr.io/assignuser/lintr-lib:0.3.0 as lintr-lib
|
||||||
FROM ghcr.io/awkbar-devops/clang-format:v1.0.2 as clang-format
|
FROM ghcr.io/awkbar-devops/clang-format:v1.0.2 as clang-format
|
||||||
FROM scalameta/scalafmt:v3.1.0 as scalafmt
|
FROM scalameta/scalafmt:v3.1.0 as scalafmt
|
||||||
|
FROM rhysd/actionlint:1.6.8 as actionlint
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Get base image #
|
# Get base image #
|
||||||
|
@ -143,14 +144,6 @@ RUN pip3 install --no-cache-dir pipenv \
|
||||||
# Installs Perl dependencies #
|
# Installs Perl dependencies #
|
||||||
##############################
|
##############################
|
||||||
RUN curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wget Perl::Critic \
|
RUN curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wget Perl::Critic \
|
||||||
#######################
|
|
||||||
# Installs ActionLint #
|
|
||||||
#######################
|
|
||||||
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash \
|
|
||||||
&& chmod +x download-actionlint.bash \
|
|
||||||
&& ./download-actionlint.bash \
|
|
||||||
&& rm download-actionlint.bash \
|
|
||||||
&& mv actionlint /usr/bin/actionlint \
|
|
||||||
#########################################
|
#########################################
|
||||||
# Install Powershell + PSScriptAnalyzer #
|
# Install Powershell + PSScriptAnalyzer #
|
||||||
#########################################
|
#########################################
|
||||||
|
@ -260,6 +253,11 @@ COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/
|
||||||
####################
|
####################
|
||||||
COPY --from=scalafmt /bin/scalafmt /usr/bin/
|
COPY --from=scalafmt /bin/scalafmt /usr/bin/
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Install actionlint #
|
||||||
|
######################
|
||||||
|
COPY --from=actionlint /usr/local/bin/actionlint /usr/bin/
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# Install Litnr #
|
# Install Litnr #
|
||||||
#################
|
#################
|
||||||
|
|
|
@ -30,6 +30,7 @@ FROM garethr/kubeval:0.15.0 as kubeval
|
||||||
FROM ghcr.io/assignuser/lintr-lib:0.3.0 as lintr-lib
|
FROM ghcr.io/assignuser/lintr-lib:0.3.0 as lintr-lib
|
||||||
FROM ghcr.io/awkbar-devops/clang-format:v1.0.2 as clang-format
|
FROM ghcr.io/awkbar-devops/clang-format:v1.0.2 as clang-format
|
||||||
FROM scalameta/scalafmt:v3.1.0 as scalafmt
|
FROM scalameta/scalafmt:v3.1.0 as scalafmt
|
||||||
|
FROM rhysd/actionlint:1.6.8 as actionlint
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Get base image #
|
# Get base image #
|
||||||
|
@ -113,14 +114,7 @@ RUN curl --retry 5 --retry-delay 5 -sL https://cpanmin.us/ | perl - -nq --no-wge
|
||||||
# Install Python Black #
|
# Install Python Black #
|
||||||
########################
|
########################
|
||||||
&& wget --tries=5 -q -O /usr/local/bin/black https://github.com/psf/black/releases/download/21.11b1/black_linux \
|
&& wget --tries=5 -q -O /usr/local/bin/black https://github.com/psf/black/releases/download/21.11b1/black_linux \
|
||||||
&& chmod +x /usr/local/bin/black \
|
&& chmod +x /usr/local/bin/black
|
||||||
#######################
|
|
||||||
# Installs ActionLint #
|
|
||||||
#######################
|
|
||||||
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash \
|
|
||||||
&& chmod +x download-actionlint.bash \
|
|
||||||
&& ./download-actionlint.bash \
|
|
||||||
&& mv actionlint /usr/bin/actionlint
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Install shellcheck #
|
# Install shellcheck #
|
||||||
|
@ -198,6 +192,11 @@ COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/
|
||||||
####################
|
####################
|
||||||
COPY --from=scalafmt /bin/scalafmt /usr/bin/
|
COPY --from=scalafmt /bin/scalafmt /usr/bin/
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Install actionlint #
|
||||||
|
######################
|
||||||
|
COPY --from=actionlint /usr/local/bin/actionlint /usr/bin/
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# Install Litnr #
|
# Install Litnr #
|
||||||
#################
|
#################
|
||||||
|
|
Loading…
Reference in a new issue