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
a31bc25614
commit
40bbed2983
1 changed files with 5 additions and 3 deletions
|
|
@ -28,14 +28,16 @@ RUN apk add --no-cache \
|
||||||
userspace-rcu \
|
userspace-rcu \
|
||||||
zlib \
|
zlib \
|
||||||
icu-libs \
|
icu-libs \
|
||||||
curl; \
|
curl \
|
||||||
|
|
||||||
RUN 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; \
|
||||||
mkdir -p /opt/microsoft/powershell/7; \
|
mkdir -p /opt/microsoft/powershell/7; \
|
||||||
tar zxf ./powershell.tar.gz -C /opt/microsoft/powershell/7; \
|
tar zxf ./powershell.tar.gz -C /opt/microsoft/powershell/7; \
|
||||||
chmod +x /opt/microsoft/powershell/7/pwsh; \
|
chmod +x /opt/microsoft/powershell/7/pwsh; \
|
||||||
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