Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions 10.0/aspnet/Dockerfile.rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ ARG DOTNET_TARBALL
# Like Microsoft images, provide the ASP.NET shared framework version.
ENV ASPNET_VERSION=$ASPNET_VERSION

LABEL io.k8s.description="Platform for running ASP.NET Core 10 applications" \
io.k8s.display-name="ASP.NET Core 10" \
io.openshift.tags="runtime,.net,dotnet,dotnetcore,aspnet,aspnetcore,dotnet100-aspnet"

# Labels consumed by Red Hat build service
LABEL name="ubi9/dotnet-100-aspnet" \
description="Platform for running ASP.NET Core 10 applications" \
summary="ASP.NET Core 10 Runtime" \
com.redhat.component="dotnet-100-aspnet-container" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
aspnet_version="$ASPNET_VERSION"
ARG _SUMMARY="ASP.NET Core 10 Runtime"
ARG _DESCRIPTION="Base image for running ASP.NET Core 10.0 applications"
LABEL \
# Labels consumed by Red Hat build pipeline, container catalog and OpenShift
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we keep each section alphabetically sorted?

Copy link
Member Author

@tmds tmds Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change the order to alphabetic, but I did change the grouping, and changed to use ARGs to avoid duplicating values.

name="ubi9/dotnet-100-aspnet" \
summary="$_SUMMARY" \
description="$_DESCRIPTION" \
com.redhat.component="dotnet-container" \
io.k8s.display-name="$_SUMMARY" \
io.k8s.description="$_DESCRIPTION" \
io.openshift.tags="runtime,dotnet,aspnet,aspnetcore,dotnet-100,dotnet-100-aspnet" \
aspnet_version="$ASPNET_VERSION" \
# UBI EULA
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"

USER 0

Expand Down
28 changes: 16 additions & 12 deletions 10.0/build/Dockerfile.rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,23 @@ ENV PATH=/opt/app-root/src/.local/bin:/opt/app-root/src/bin:/opt/app-root/.dotne
# Like Microsoft images, provide the SDK version
DOTNET_SDK_VERSION=$DOTNET_SDK_VERSION

LABEL io.k8s.description="Platform for building and running .NET 10 applications" \
io.k8s.display-name=".NET 10 SDK" \
io.openshift.tags="builder,.net,dotnet,dotnetcore,dotnet-100" \
ARG _SUMMARY=".NET 10 SDK"
ARG _DESCRIPTION="SDK for building .NET 10.0 applications"
LABEL \
# Labels consumed by Red Hat build pipeline, container catalog and OpenShift
name="ubi9/dotnet-100" \
summary="$_SUMMARY" \
description="$_DESCRIPTION" \
com.redhat.component="dotnet-container" \
io.k8s.display-name="$_SUMMARY" \
io.k8s.description="$_DESCRIPTION" \
io.openshift.tags="builder,dotnet,aspnet,aspnetcore,dotnet-100,dotnet-100-sdk" \
dotnet_sdk_version="$DOTNET_SDK_VERSION" \
# S2I
io.openshift.s2i.scripts-url=image:///usr/libexec/s2i \
io.s2i.scripts-url=image:///usr/libexec/s2i

# Labels consumed by Red Hat build service
LABEL name="ubi9/dotnet-100" \
description="Platform for building and running .NET 10 applications" \
summary=".NET 10 SDK" \
com.redhat.component="dotnet-100-container" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
dotnet_sdk_version="$DOTNET_SDK_VERSION"
io.s2i.scripts-url=image:///usr/libexec/s2i \
# UBI EULA
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"

# Switch to root for package installs
USER 0
Expand Down
27 changes: 15 additions & 12 deletions 10.0/runtime/Dockerfile.rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ ENV HOME=/opt/app-root \
# Like Microsoft images, provide the .NET version.
DOTNET_VERSION=$DOTNET_VERSION

LABEL io.k8s.description="Platform for running .NET 10 applications" \
io.k8s.display-name=".NET 10" \
io.openshift.tags="runtime,.net,dotnet,dotnetcore,dotnet100-runtime" \
io.openshift.expose-services="8080:http"

# Labels consumed by Red Hat build service
LABEL name="ubi9/dotnet-100-runtime" \
description="Platform for running .NET 10 applications" \
summary=".NET 10 Runtime" \
com.redhat.component="dotnet-100-runtime-container" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
ARG _SUMMARY=".NET 10 Runtime"
ARG _DESCRIPTION="Base image for running .NET 10.0 applications"
LABEL \
# Labels consumed by Red Hat build pipeline, container catalog and OpenShift
name="ubi9/dotnet-100-runtime" \
summary="$_SUMMARY" \
description="$_DESCRIPTION" \
com.redhat.component="dotnet-container" \
io.k8s.display-name="$_SUMMARY" \
io.k8s.description="$_DESCRIPTION" \
io.openshift.tags="runtime,dotnet,dotnet-100,dotnet-100-runtime" \
io.openshift.expose-services="8080:http" \
dotnet_version_major_minor="10.0" \
dotnet_version="$DOTNET_VERSION"
dotnet_version="$DOTNET_VERSION" \
# UBI EULA
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"

COPY ./root/usr/bin /usr/bin

Expand Down