Skip to content

Support for code that requires ICU package #180

@mthalman

Description

@mthalman

For any .NET code that relies on the ICU package (e.g. System.Globalization), it will fail to run in a certain set of .NET images which do not have ICU installed. Currently this set of images is limited to Alpine and distroless-style images. It would be great if the SDK container build logic handled the installation of the ICU package automatically based on the context of the app.

One simple way to detect this in the app is whether invariant globalization mode is disabled. If so, the image that's generated would automatically have the ICU package installed for you.

Doing this for Linux is pretty straightforward. For distroless, it's more tricky because you'd have to know the corresponding distroful image in order to use its package manager to retrieve the ICU package and copy that into the resulting layer of the distroless image.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions