Repository navigation
Conversation
Limit the scriptless-container experiment to the Alpine 3.24 Helix image family. Preserve OS dependencies and user setup while removing the Helix Python build stage and virtual environment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the existing Helix Dockerfile so current tags and LLVM images retain their dependencies. Add the validated scriptless Dockerfile under a separate AMD64 variant with its own manifest tag, ownership, and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
|
Why keep Python and the dev tools? I would assume we'd want to stop this image down a lot further. |
Member
Author
we may shed some more packages but lot of the test workloads do depend on python ... like XUnit or various helper functions. so I would prefer to separate helix-scrip removal from other package changes. Maybe do it as opprtunity when Alpine 3.25 comes around. |
Member
|
Works. We can wait until Alpine 3.25. That will be soon enough. |
Member
Author
|
I would still like to move forward with this so we can verify the Helix part. We can do the package reduction on the upgrade, or opportunistically at any time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add an opt-in scriptless Alpine 3.24 AMD64 Helix image, rather than removing dependencies from images already used by other repositories. Following the discussion with Rich, this PR now leaves existing image names and behavior unchanged.
This remains a focused proof of concept on the path to removing embedded
helix-scriptswhere consumers are ready. The broad change in #1647 is intentionally left unchanged. Related reporting work: dotnet/arcade#16774 and dotnet/arcade#16775.Scope
src/alpine/3.24/helix-scriptless/amd64/Dockerfileand the new tagalpine-3.24-helix-scriptless-amd64.helixbotuser, and mount-access setup; omit the embedded Helix Python virtual environment.src/alpine/3.24/helix/Dockerfileexactly to the PR base. Existing Alpine 3.24 Helix tags, ARM variants, and derived LLVM images are unchanged.The published opt-in reference will be
mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.24-helix-scriptless-amd64.Validation and merge gate
Existing consumers stay on their unchanged images. Consumers choosing the new tag must validate their reporting path and any other dependencies on
helix-scripts.This update
pwsh -NoProfile -File ./run-tests.ps1: passed all 6 repository tests, including manifest path/tag and CODEOWNERS validation.git -c core.whitespace=cr-at-eol diff --cached --check: passed, preserving CODEOWNERS' existing CRLF line endings.az acr build --registry wfurthelixpoc --platform linux/amd64 --image dotnet-buildtools/prereqs:alpine-3.24-helix-scriptless-amd64 src/alpine/3.24/helix-scriptless/amd64 --no-logs: succeeded (ACR runcc3).sha256:85c0676d0f8285ee11039929ec8d59e7d478fe6a12216fd77ac1e859b4f689be.cc4):pythonis available, the user is UID 1000,/rootis traversable, the old virtual environment is absent, andimportlib.util.find_spec("helix")returnsNone.Earlier runtime end-to-end evidence
The new Dockerfile is byte-for-byte identical to the scriptless Dockerfile tested in the initial version of this PR (commit
b907036c). That candidate, digestsha256:9ac64c8156672650af15a7c41dd015bfc186dd7e662044e5eed5143bbf405f43, was pinned in dotnet/runtime#138025.__test_report_v2.jsonreporting path. Failure details, attachments, retries, and other reporting paths have not been established by this PoC.85c0676d...digest. The runtime PoC remains pinned to its original tested image.These limitations apply to adoption of the new variant, not to existing consumers, whose images retain their dependencies.
Note
This PR description and change were prepared with GitHub Copilot.