From 03aafa99d3ccc188da565138889fc79fc691fb1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Sep 2024 21:27:40 +0000 Subject: [PATCH 1/3] Build(deps): Bump dotnet/sdk in /src/docker Bumps dotnet/sdk from 6.0-windowsservercore-ltsc2022 to 8.0.101-windowsservercore-ltsc2022. --- updated-dependencies: - dependency-name: dotnet/sdk dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- src/docker/Dockerfile-win-ltsc2019 | 2 +- src/docker/Dockerfile-win-ltsc2022 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docker/Dockerfile-win-ltsc2019 b/src/docker/Dockerfile-win-ltsc2019 index 1d22de56..e8742d9b 100644 --- a/src/docker/Dockerfile-win-ltsc2019 +++ b/src/docker/Dockerfile-win-ltsc2019 @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2019@sha256:e3f6f63b2be79b773ac123accc47f70081e8377db2d7b46c2015a16e0e708492 +FROM mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2019@sha256:64ae795d03e5baff18006980118cc43089f4cf51c1f7ae84b41421772633bd01 # Configure local user USER ContainerAdministrator diff --git a/src/docker/Dockerfile-win-ltsc2022 b/src/docker/Dockerfile-win-ltsc2022 index 313c7833..56e2c02d 100644 --- a/src/docker/Dockerfile-win-ltsc2022 +++ b/src/docker/Dockerfile-win-ltsc2022 @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022@sha256:6e55dbc81647b9b0d7b68db015313ee5d24eab44a7daf411d2c05454e44c5ee0 +FROM mcr.microsoft.com/dotnet/sdk:8.0-windowsservercore-ltsc2022@sha256:a5daa91a8bbf6dbbdfde03490343c3234b356dcbb0740cd33fd1417b34670c38 # Configure local user USER ContainerAdministrator From 0a32279faa6749b619be9afba77c8a4955a2b864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Thu, 10 Oct 2024 13:07:52 +0200 Subject: [PATCH 2/3] breaking: Upgrade base images to .NET 8.0 by default Windows images ave been upgraded in fead84e047acbc0cf706ad0d1bc5b4da6cb067ac. --- src/docker/Dockerfile-bookworm | 2 +- src/docker/Dockerfile-bullseye | 2 +- src/docker/Dockerfile-focal | 2 +- src/docker/Dockerfile-jammy | 2 +- src/docker/Dockerfile-ubi8 | 2 +- src/docker/Dockerfile-ubi9 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/docker/Dockerfile-bookworm b/src/docker/Dockerfile-bookworm index 55a4a646..37f7d057 100644 --- a/src/docker/Dockerfile-bookworm +++ b/src/docker/Dockerfile-bookworm @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bookworm-slim@sha256:4f1519bfe954d5caf962f5502c4252d5d39d45517aa68e6b5847e72fd10769b4 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim@sha256:b3cdb99fb356091b6395f3444d355da8ae5d63572ba777bed95b65848d6e02be AS base # Force apt-get to not use TTY ENV DEBIAN_FRONTEND=noninteractive diff --git a/src/docker/Dockerfile-bullseye b/src/docker/Dockerfile-bullseye index 5d631bc0..987b930e 100644 --- a/src/docker/Dockerfile-bullseye +++ b/src/docker/Dockerfile-bullseye @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim@sha256:c39b4582563fed008cb8e83d44388cf80dbc4e8cf8803869f5799205fcb126eb AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim@sha256:3717ce4bc6e34336ac100762eb766dc9cb739543686d0189001c1cafa57ba29c AS base # Force apt-get to not use TTY ENV DEBIAN_FRONTEND=noninteractive diff --git a/src/docker/Dockerfile-focal b/src/docker/Dockerfile-focal index df975a3d..153422a5 100644 --- a/src/docker/Dockerfile-focal +++ b/src/docker/Dockerfile-focal @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal@sha256:2e686e012918cd62109385348ae441ecc6702dad90b0de15ca37eb5851fe43cf AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal@sha256:85452c433603c39424da21d775002072bf6d9e5ec9ae3e4e62f5b8f3046200c5 AS base # Force apt-get to not use TTY ENV DEBIAN_FRONTEND=noninteractive diff --git a/src/docker/Dockerfile-jammy b/src/docker/Dockerfile-jammy index 999efa69..45715ed5 100644 --- a/src/docker/Dockerfile-jammy +++ b/src/docker/Dockerfile-jammy @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0-jammy@sha256:36f90c72b200f455e130a48fc279080aff296b4d506e29b9619fe82ae3853c4b AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy@sha256:d41af821cc90286d7c0d81c6a25733846ee7eebb2b55479934af909afd36471a AS base # Force apt-get to not use TTY ENV DEBIAN_FRONTEND=noninteractive diff --git a/src/docker/Dockerfile-ubi8 b/src/docker/Dockerfile-ubi8 index 00be5165..014bca01 100644 --- a/src/docker/Dockerfile-ubi8 +++ b/src/docker/Dockerfile-ubi8 @@ -17,7 +17,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 ARG JQ_VERSION RUN --mount=target=/var/cache/yum,type=cache,sharing=locked \ microdnf install -y --nodocs --setopt=install_weak_deps=0 \ - aspnetcore-runtime-6.0 \ + aspnetcore-runtime-8.0 \ ca-certificates \ cargo \ curl \ diff --git a/src/docker/Dockerfile-ubi9 b/src/docker/Dockerfile-ubi9 index 19294319..76f05ab5 100644 --- a/src/docker/Dockerfile-ubi9 +++ b/src/docker/Dockerfile-ubi9 @@ -17,7 +17,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 ARG JQ_VERSION RUN --mount=target=/var/cache/yum,type=cache,sharing=locked \ microdnf install -y --nodocs --setopt=install_weak_deps=0 \ - aspnetcore-runtime-6.0 \ + aspnetcore-runtime-8.0 \ ca-certificates \ cargo \ findutils \ From 2ad3eddd934f1f79512a403033cde498d7399438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Thu, 10 Oct 2024 13:12:32 +0200 Subject: [PATCH 3/3] doc: Memo on the .NET version installed --- docs/content/docs/advanced-topics/build-aspnet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/content/docs/advanced-topics/build-aspnet.md b/docs/content/docs/advanced-topics/build-aspnet.md index 6b63f48a..82dcaad3 100644 --- a/docs/content/docs/advanced-topics/build-aspnet.md +++ b/docs/content/docs/advanced-topics/build-aspnet.md @@ -7,6 +7,11 @@ It was chosen arbitrarily to install the LTS non SDK version of ASNP.NET. Becaus - LTS is better supported by Microsoft than STS - The non-SDK is lighter when included in a container, knowing that not everyone will use it for building purposes +Bundled versions installed depends on the image used: + +- Debian Bullseye (11) and Ubuntu Focal (20.04) use the `6.x` version (Microsoft doesn't support any LTS upgrades for these versions) +- Other images use the `8.x` version + It is recommended that development teams to hard-code the framework version you want to use, in your pipeline. With this setup, the developer controls its environment, not the platform. If they decide to upgrade, they update the pipeline, if not, not. This is under the responsibility of the developer. The ASP.NET framework can be installed on the fly with [UseDotNet@2](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/use-dotnet-v2?view=azure-pipelines):