Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu Chiseled extra images for .NET Runtime and ASP.NET Core #5021

Closed
lbussell opened this issue Nov 21, 2023 · 12 comments
Closed

Add Ubuntu Chiseled extra images for .NET Runtime and ASP.NET Core #5021

lbussell opened this issue Nov 21, 2023 · 12 comments

Comments

@lbussell
Copy link
Contributor

lbussell commented Nov 21, 2023

There is a desire to use globalization libraries in combination with framework-dependent deployments on Ubuntu Chiseled:

Changes:

Example image flavors:

  • mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-extra
  • mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-composite-extra
  • mcr.microsoft.com/dotnet/nightly/aspnet:8.0-cbl-mariner2.0-distroless-extra
  • mcr.microsoft.com/dotnet/nightly/aspnet:8.0-cbl-mariner2.0-distroless-composite-extra
@richlander
Copy link
Member

Related: #5014

Just wanting GH to reference the related issues for discoverability.

@Kerwood
Copy link

Kerwood commented Nov 27, 2023

Yes please.. We have a lot of .Net apps in our org. depending on the tzdata package as well, which is the reason we cannot change to the chiseled image.

@lbussell lbussell changed the title Add Ubuntu Chiseled extra images for runtime and aspnet Add Ubuntu Chiseled extra images for .NET Runtime and ASP.NET Core Nov 27, 2023
@lbussell lbussell moved this from In Progress to Rollout in .NET Docker Nov 30, 2023
@lbussell
Copy link
Contributor Author

[Triage] As mentioned in #5014 (comment), these images are available now in the nightly aspnet and nightly runtime repos. They will be officially supported with the next .NET servicing release (Jan).

@mantasaudickas
Copy link

If I get it right: alpine3.18-extra (nightly) includes these packages:

  • icu-data-full
  • icu-libs
  • tzdata

and chiseled-extra:

  • libicu70_libs
  • tzdata_zoneinfo
  • tzdata_zoneinfo-icu

Are these covering the same ICU/Timezone aspects in .NET apps?

@lbussell
Copy link
Contributor Author

lbussell commented Dec 6, 2023

Yes, you can check the packages installed in the Dockerfiles themselves:

RUN apk add --upgrade --no-cache \
ca-certificates-bundle \
\
# .NET dependencies
icu-data-full \
icu-libs \
libgcc \
libssl3 \
libstdc++ \
tzdata \
zlib

&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
--release ubuntu-22.04 --root /rootfs \
base-files_base \
base-files_release-info \
ca-certificates_data \
libc6_libs \
libgcc-s1_libs \
libicu70_libs \
libssl3_libs \
libstdc++6_libs \
tzdata_zoneinfo \
tzdata_zoneinfo-icu \
zlib1g_libs

The new extra images for Chiseled Runtime and ASP.NET Core are based on this image. You can inspect the contents of each image in the distros' respective package repositories. For example:

We aspire for these images be functionally equivalent for running .NET apps (aside from the lack of package manager and shell in Ubuntu Chiseled). If you find that they aren't, please file an issue.

@garrettsutula
Copy link
Contributor

Would it be possible to make the same for earlier versions of .NET e.g. 6.0?

Helpful for the same reasons really - I expect to update projects on older versions of the .NET framework but don't have that done yet.

@mantasaudickas
Copy link

We aspire for these images be functionally equivalent for running .NET apps (aside from the lack of package manager and shell in Ubuntu Chiseled). If you find that they aren't, please file an issue.

Sorry, but for me still not clear.. I get that from functionality point of view these will be equivalent.. but what about data?
In alpine-extra we have icu-data-full... so which package in chiseled-extra is equivalent to it?

@lbussell lbussell moved this from Rollout to In Progress in .NET Docker Dec 7, 2023
gamingrobot added a commit to hallofmeat/CoachFrank that referenced this issue Dec 20, 2023
@lbussell lbussell moved this from In Progress to Rollout in .NET Docker Jan 4, 2024
@ElkRom
Copy link

ElkRom commented Jan 9, 2024

Hi,
Sorry for asking such stupid question, but when do you plan to release image?

@MichaelSimons
Copy link
Member

Hi, Sorry for asking such stupid question, but when do you plan to release image?

They will be released today - See #5014 (comment).

@lbussell
Copy link
Contributor Author

lbussell commented Jan 9, 2024

These images are now available in the main aspnet and runtime repos. Please see the announcement: Ubuntu Chiseled runtime and aspnet images are now available in the extra variant (#5092).

@lbussell lbussell closed this as completed Jan 9, 2024
@github-project-automation github-project-automation bot moved this from Rollout to Done in .NET Docker Jan 9, 2024
@ElkRom
Copy link

ElkRom commented Jan 10, 2024 via email

@coffeesandwitch
Copy link

Looking at using the '-jammy-chiseled-extra' package for our deployments, currently we are using the bloated '-jammy' so we can set the timezone within the dockerfile. would the new -extra package rely soly upon the regional settings as configured in .net?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

8 participants