Skip to content

Commit 3f209fc

Browse files
committed
ci: fix opensuse
1 parent 018b670 commit 3f209fc

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

ci/docker/opensuse/Dockerfile

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,13 @@ RUN zypper update -y \
1818
# .NET install
1919
# see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-opensuse
2020
RUN zypper refresh \
21-
&& zypper install -y wget tar gzip libicu-devel \
22-
&& mkdir -p /usr/share/dotnet \
23-
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
21+
&& zypper install -y wget tar awk gzip libicu-devel findutils
2422

25-
# see: https://dotnet.microsoft.com/download/dotnet-core/6.0
26-
RUN dotnet_sdk_version=6.0.100 \
27-
&& wget -qO dotnet.tar.gz \
28-
"https://dotnetcli.azureedge.net/dotnet/Sdk/${dotnet_sdk_version}/dotnet-sdk-${dotnet_sdk_version}-linux-x64.tar.gz" \
29-
&& dotnet_sha512='cb0d174a79d6294c302261b645dba6a479da8f7cf6c1fe15ae6998bc09c5e0baec810822f9e0104e84b0efd51fdc0333306cb2a0a6fcdbaf515a8ad8cf1af25b' \
30-
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
31-
&& tar -C /usr/share/dotnet -oxzf dotnet.tar.gz \
32-
&& rm dotnet.tar.gz
23+
## .Net 8.0
24+
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
25+
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
26+
&& chmod a+x dotnet-install.sh \
27+
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
3328
# Trigger first run experience by running arbitrary cmd
3429
RUN dotnet --info
3530

0 commit comments

Comments
 (0)