File tree 2 files changed +24
-2
lines changed 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,23 @@ RUN dnf config-manager --add-repo https://packages.microsoft.com/fedora/39/prod/
25
25
26
26
# Install tools used by build automation.
27
27
RUN dnf --setopt=install_weak_deps=False install -y \
28
+ azure-cli \
28
29
git \
30
+ jq \
29
31
tar \
30
32
procps \
31
33
zip \
32
34
&& dnf clean all
33
35
36
+ # Install the latest non-preview powershell release.
37
+ RUN LATEST_TAG=$(curl -L https://api.github.com/repos/powershell/powershell/releases/latest | jq -r '.tag_name' ) \
38
+ && curl -L https://github.com/PowerShell/PowerShell/releases/download/$LATEST_TAG/powershell-${LATEST_TAG#*v}-linux-x64.tar.gz -o /tmp/powershell.tar.gz \
39
+ && mkdir -p /opt/microsoft/powershell \
40
+ && tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell \
41
+ && chmod +x /opt/microsoft/powershell/pwsh \
42
+ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
43
+ && rm -f /tmp/powershell.tar.gz
44
+
34
45
# Dependencies of CoreCLR, Mono and CoreFX.
35
46
RUN dnf --setopt=install_weak_deps=False install -y \
36
47
autoconf \
@@ -67,4 +78,4 @@ RUN dnf --setopt=install_weak_deps=False install -y \
67
78
RUN cd ~ && \
68
79
curl -sL https://rpm.nodesource.com/setup_20.x
69
80
RUN dnf install -y nodejs && dnf clean all
70
- ENV NO_UPDATE_NOTIFIER=true
81
+ ENV NO_UPDATE_NOTIFIER=true
Original file line number Diff line number Diff line change @@ -19,18 +19,29 @@ RUN dnf --setopt=install_weak_deps=False install -y \
19
19
20
20
# Add MS package repo.
21
21
COPY microsoft.asc /tmp
22
- RUN dnf config-manager --add-repo https://packages.microsoft.com/fedora/39 /prod/ && \
22
+ RUN dnf config-manager --add-repo https://packages.microsoft.com/fedora/40 /prod/ && \
23
23
rpm --import /tmp/microsoft.asc && \
24
24
rm /tmp/microsoft.asc
25
25
26
26
# Install tools used by build automation.
27
27
RUN dnf --setopt=install_weak_deps=False install -y \
28
+ azure-cli \
28
29
git \
30
+ jq \
29
31
tar \
30
32
procps \
31
33
zip \
32
34
&& dnf clean all
33
35
36
+ # Install the latest non-preview powershell release.
37
+ RUN LATEST_TAG=$(curl -L https://api.github.com/repos/powershell/powershell/releases/latest | jq -r '.tag_name' ) \
38
+ && curl -L https://github.com/PowerShell/PowerShell/releases/download/$LATEST_TAG/powershell-${LATEST_TAG#*v}-linux-x64.tar.gz -o /tmp/powershell.tar.gz \
39
+ && mkdir -p /opt/microsoft/powershell \
40
+ && tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell \
41
+ && chmod +x /opt/microsoft/powershell/pwsh \
42
+ && ln -s /opt/microsoft/powershell/pwsh /usr/bin/pwsh \
43
+ && rm -f /tmp/powershell.tar.gz
44
+
34
45
# Dependencies of CoreCLR, Mono and CoreFX.
35
46
RUN dnf --setopt=install_weak_deps=False install -y \
36
47
autoconf \
You can’t perform that action at this time.
0 commit comments