mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 00:31:07 -05:00
Use direct download instead of git
This commit is contained in:
parent
bb5e655a95
commit
23324e551f
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -26,8 +26,9 @@ ARG PWSH_VERSION='latest'
|
||||||
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
|
ARG PWSH_DIRECTORY='/opt/microsoft/powershell'
|
||||||
ARG PSSA_VERSION='latest'
|
ARG PSSA_VERSION='latest'
|
||||||
# arm-ttk
|
# arm-ttk
|
||||||
ARG ARM_TTK_URI='https://github.com/Azure/arm-ttk.git'
|
ARG ARM_TTK_NAME='master.zip'
|
||||||
ARG ARM_TTK_DIRECTORY='/opt/microsoft/arm-ttk'
|
ARG ARM_TTK_URI='https://github.com/Azure/arm-ttk/archive/master.zip'
|
||||||
|
ARG ARM_TTK_DIRECTORY='/opt/microsoft'
|
||||||
# Raku Linter
|
# Raku Linter
|
||||||
ARG RAKU_VER="2020.06"
|
ARG RAKU_VER="2020.06"
|
||||||
ARG RAKU_INSTALL_PATH=/usr
|
ARG RAKU_INSTALL_PATH=/usr
|
||||||
|
@ -115,8 +116,10 @@ RUN mkdir -p ${PWSH_DIRECTORY} \
|
||||||
# Depends on PowerShell
|
# Depends on PowerShell
|
||||||
# Reference https://github.com/Azure/arm-ttk
|
# Reference https://github.com/Azure/arm-ttk
|
||||||
# Reference https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/test-toolkit
|
# Reference https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/test-toolkit
|
||||||
ENV ARM_TTK_PSD1="${ARM_TTK_DIRECTORY}/arm-ttk/arm-ttk.psd1"
|
ENV ARM_TTK_PSD1="${ARM_TTK_DIRECTORY}/arm-ttk-master/arm-ttk/arm-ttk.psd1"
|
||||||
RUN git clone "${ARM_TTK_URI}" "${ARM_TTK_DIRECTORY}" \
|
RUN curl -sLO "${ARM_TTK_URI}" \
|
||||||
|
&& unzip "${ARM_TTK_NAME}" -d "${ARM_TTK_DIRECTORY}" \
|
||||||
|
&& rm "${ARM_TTK_NAME}" \
|
||||||
&& ln -sTf "$ARM_TTK_PSD1" /usr/bin/arm-ttk
|
&& ln -sTf "$ARM_TTK_PSD1" /usr/bin/arm-ttk
|
||||||
|
|
||||||
######################
|
######################
|
||||||
|
|
Loading…
Reference in a new issue