-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Williamhe/update dotnet 8 runtime (#2245)
* Update dotnet8 sdk versions * Update dotnet monitor version * Add staging dockerfiles * Add new .NET8 SDKs * Add new .NET8 SDKs * Updates for testing staging * Update dotnet-monitor versions * Add download url for new .net8 sdks * Remove .net8 sdks * Update supported platform version * Update sdk versions * Revert "Update sdk versions" This reverts commit 874cffa. * Update runtime tag * Update dotnet-monitor version * Add token parameter * Revert "Add token parameter" This reverts commit 5db274a. * Revert "Update dotnet-monitor version" This reverts commit 30a4815.
- Loading branch information
1 parent
e27125b
commit 97e1254
Showing
8 changed files
with
137 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
images/runtime/dotnetcore/8.0/base.bookworm.staging.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# dotnet tools are currently available as part of SDK so we need to create them in an sdk image | ||
# and copy them to our final runtime image | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-preview AS tools-install | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-sos | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-trace | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-dump | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-counters | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-gcdump | ||
# Update dotnet-monitor after .NET is out of preview to: | ||
# dotnet-monitor --version 8.* | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-monitor --version 8.0.0-preview.7.23402 | ||
|
||
FROM mcr.microsoft.com/mirror/docker/library/debian:bookworm-slim | ||
ARG BUILD_DIR=/tmp/oryx/build | ||
ADD build ${BUILD_DIR} | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
# .NET Core dependencies | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu72 \ | ||
libssl3 \ | ||
libstdc++6 \ | ||
zlib1g \ | ||
lldb \ | ||
curl \ | ||
file \ | ||
libgdiplus \ | ||
&& apt-get upgrade --assume-yes \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Configure web servers to bind to port 80 when present | ||
ENV ASPNETCORE_URLS=http://+:80 \ | ||
# Enable detection of running in a container | ||
DOTNET_RUNNING_IN_CONTAINER=true \ | ||
PATH="/opt/dotnetcore-tools:${PATH}" | ||
|
||
COPY --from=tools-install /dotnetcore-tools /opt/dotnetcore-tools | ||
|
||
# Install .NET Core | ||
# mount the secret sas token to pull the binaries, and make sure we do not print to docker build logs | ||
RUN --mount=type=secret,id=dotnet_storage_account_token_id \ | ||
set -e \ | ||
# based on resolution on https://github.com/NuGet/Announcements/issues/49#issue-795386700 | ||
&& apt-get remove ca-certificates -y \ | ||
&& apt-get purge ca-certificates -y \ | ||
&& apt-get update \ | ||
&& apt-get install -f ca-certificates -y --no-install-recommends \ | ||
&& . ${BUILD_DIR}/__dotNetCoreRunTimeVersions.sh \ | ||
&& curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$NET_CORE_APP_80/dotnet-runtime-$NET_CORE_APP_80-linux-x64.tar.gz \ | ||
&& echo "$NET_CORE_APP_80_SHA dotnet.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ | ||
&& rm dotnet.tar.gz \ | ||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \ | ||
# Install ASP.NET Core | ||
&& . ${BUILD_DIR}/__dotNetCoreRunTimeVersions.sh \ | ||
&& curl -SL --output aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$ASPNET_CORE_APP_80/aspnetcore-runtime-$ASPNET_CORE_APP_80-linux-x64.tar.gz \ | ||
&& echo "$ASPNET_CORE_APP_80_SHA aspnetcore.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -zxf aspnetcore.tar.gz -C /usr/share/dotnet ./shared/Microsoft.AspNetCore.App \ | ||
&& rm aspnetcore.tar.gz \ | ||
&& dotnet-sos install \ | ||
&& rm -rf ${BUILD_DIR} |
65 changes: 65 additions & 0 deletions
65
images/runtime/dotnetcore/8.0/base.bullseye.staging.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# dotnet tools are currently available as part of SDK so we need to create them in an sdk image | ||
# and copy them to our final runtime image | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-preview AS tools-install | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-sos | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-trace | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-dump | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-counters | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-gcdump | ||
# Update dotnet-monitor after .NET is out of preview to: | ||
# dotnet-monitor --version 8.* | ||
RUN dotnet tool install --tool-path /dotnetcore-tools dotnet-monitor --version 8.0.0-preview.7.23402 | ||
FROM mcr.microsoft.com/mirror/docker/library/debian:bullseye-slim | ||
ARG BUILD_DIR=/tmp/oryx/build | ||
ADD build ${BUILD_DIR} | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
# .NET Core dependencies | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu67 \ | ||
libssl1.1 \ | ||
libstdc++6 \ | ||
zlib1g \ | ||
lldb \ | ||
curl \ | ||
file \ | ||
libgdiplus \ | ||
&& apt-get upgrade --assume-yes \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Configure web servers to bind to port 80 when present | ||
ENV ASPNETCORE_URLS=http://+:80 \ | ||
# Enable detection of running in a container | ||
DOTNET_RUNNING_IN_CONTAINER=true \ | ||
PATH="/opt/dotnetcore-tools:${PATH}" | ||
|
||
COPY --from=tools-install /dotnetcore-tools /opt/dotnetcore-tools | ||
|
||
# Install .NET Core | ||
# mount the secret sas token to pull the binaries, and make sure we do not print to docker build logs | ||
RUN --mount=type=secret,id=dotnet_storage_account_token_id \ | ||
set -e \ | ||
# based on resolution on https://github.com/NuGet/Announcements/issues/49#issue-795386700 | ||
&& apt-get remove ca-certificates -y \ | ||
&& apt-get purge ca-certificates -y \ | ||
&& apt-get update \ | ||
&& apt-get install -f ca-certificates -y --no-install-recommends \ | ||
&& . ${BUILD_DIR}/__dotNetCoreRunTimeVersions.sh \ | ||
&& curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$NET_CORE_APP_80/dotnet-runtime-$NET_CORE_APP_80-linux-x64.tar.gz \ | ||
&& echo "$NET_CORE_APP_80_SHA dotnet.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ | ||
&& rm dotnet.tar.gz \ | ||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \ | ||
# Install ASP.NET Core | ||
&& . ${BUILD_DIR}/__dotNetCoreRunTimeVersions.sh \ | ||
&& curl -SL --output aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$ASPNET_CORE_APP_80/aspnetcore-runtime-$ASPNET_CORE_APP_80-linux-x64.tar.gz \ | ||
&& echo "$ASPNET_CORE_APP_80_SHA aspnetcore.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -zxf aspnetcore.tar.gz -C /usr/share/dotnet ./shared/Microsoft.AspNetCore.App \ | ||
&& rm aspnetcore.tar.gz \ | ||
&& dotnet-sos install \ | ||
&& rm -rf ${BUILD_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters