Skip to content

Proposal: Drop PowerShell from Alpine and Ubuntu SDK images for .NET 9+ #5474

Closed
@richlander

Description

We added PowerShell to SDK images based on user demand in 2019. At the time, we made the choice to add PowerShell to all SDK variants. There was never a suggestion that PowerShell was needed by, for example, >50% of our user base. We should continue to offer PowerShell, however, it is no longer obvious we should offer it in all variants. Making our offering asymmetric w/rt PowerShell will offer users more choice (without increasing tag count).

We recently had to hold back the Alpine floating tag for .NET 6 due to PowerShell (#5196). Alpine is fast moving and considered a critical offering. We should ensure that all dependencies can move at the pace of Alpine for all of our Alpine images. If not, those dependencies should be removed (although PowerShell is our "foreign" dependency).

Size is another key topic.

  • Alpine w/pwsh: 274.94 MB
  • Alpine w/o pwsh: 259.27 MB
  • Jammy w/pwsh: 313.52 MB
  • Jammy w/o pwsh: 298.17 MB

Note: Sizes (compressed) are recorded from Docker Hub.

That's about a 15MB (compressed) savings. That's quite significant.

Continuing along the path of #4821:

  • Debian should continue to be our default "all batteries included" offering, including PowerShell in the SDK image.
  • Alpine and Ubuntu should be more opinionated, with no PowerShell in their SDK images.

There may be some users that use and prefer Alpine + PowerShell, for example. They can provision PowerShell themselves or switch to Debian. I think both are reasonable options.

I haven't completely given up on a distroless SDK (#4942), however, I think this proposal makes much more sense to consider first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions