mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-16 02:56:30 +00:00
INF-2341 Add step to install PowerShell
This commit is contained in:
parent
76761e52bf
commit
490b00b2be
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -15,7 +15,7 @@ RUN keytool -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt
|
||||||
|
|
||||||
# Install PowerShell
|
# Install PowerShell
|
||||||
# https://docs.microsoft.com/en-us/powershell/scripting/install/install-alpine?view=powershell-7.2#installation-steps
|
# https://docs.microsoft.com/en-us/powershell/scripting/install/install-alpine?view=powershell-7.2#installation-steps
|
||||||
RUN sudo apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
less \
|
less \
|
||||||
ncurses-terminfo-base \
|
ncurses-terminfo-base \
|
||||||
|
|
@ -29,13 +29,13 @@ RUN sudo apk add --no-cache \
|
||||||
zlib \
|
zlib \
|
||||||
icu-libs \
|
icu-libs \
|
||||||
curl; \
|
curl; \
|
||||||
RUN sudo apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
|
RUN apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
|
||||||
lttng-ust
|
lttng-ust
|
||||||
RUN wget -O powershell.tar.gz -fSL https://github.com/PowerShell/PowerShell/releases/download/v7.2.3/powershell-7.2.3-linux-alpine-x64.tar.gz; \
|
RUN wget -O powershell.tar.gz -fSL https://github.com/PowerShell/PowerShell/releases/download/v7.2.3/powershell-7.2.3-linux-alpine-x64.tar.gz; \
|
||||||
sudo mkdir -p /opt/microsoft/powershell/7; \
|
mkdir -p /opt/microsoft/powershell/7; \
|
||||||
sudo tar zxf ./powershell.tar.gz -C /opt/microsoft/powershell/7; \
|
tar zxf ./powershell.tar.gz -C /opt/microsoft/powershell/7; \
|
||||||
sudo chmod +x /opt/microsoft/powershell/7/pwsh; \
|
chmod +x /opt/microsoft/powershell/7/pwsh; \
|
||||||
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue