sdk-container-builds
sdk-container-builds copied to clipboard
Consider when 'chiseled' images could be inferred for containers
The Ubuntu chiseled containers (e.g. 8.0-preview-jammy-chiseled) are a much lighter-dependency version of the normal Ubuntu container, and we should consider opting users into them when the user's configuration meets the requirements.
There are two directions we could go here:
- user opts into chiseled mode
- in this mode, if a user set the chiseled mode flag, we'd want to enable certain matching flags, like the InvariantCulture flag, on behalf of the user. This would ensure that the generated container is the best 'fit' for the host layer
- we infer the chiseled images based on other user gestures
- in this mode, if the user set the InvariantCulture MSBuild property then we would change our inference logic
I generally prefer the first mode, since moving to chiseled containers has other implications - for example with no shell the user wouldn't be able to easily debug the running container. It's possible that https://github.com/dotnet/sdk-container-builds/issues/401 would be enough of a first step here - being able to set the 'family' of container tags to use would mean that a user could set <ContainerBaseImageFamily>jammy-chiseled</ContainerBaseImageFamily> and be explicit about that part while leaving the rest of image inference untouched.