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 support for Alpine to python feature #1015

Open
wants to merge 58 commits into
base: main
Choose a base branch
from

Conversation

jonbackhaus
Copy link
Contributor

This PR introduces support of Alpine Linux to the python dev container feature.

note: the `addgroup` arguments are in a different order than `groupadd`
need to add another clause to handle Alpine; this simplifies the logic for handling both cases
@jonbackhaus jonbackhaus requested a review from a team as a code owner June 23, 2024 12:08
…talled); refactor test script names to remove major version suffix (since it isn't specified in the associated image tag)
Copy link
Member

@samruddhikhandale samruddhikhandale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing to see the Alpine support added for Python, thank you ✨

src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
test/python/scenarios.json Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
src/python/install.sh Outdated Show resolved Hide resolved
jonbackhaus and others added 9 commits June 27, 2024 19:30
note: this change could apply across multiple tests, if desired
`bash` will be installed via "common-utils" feature, so it's not necessary to start from the MCR alpine base image
`bash` will be installed via "common-utils" feature, so it's not necessary to start from the MCR alpine base image
src/python/install.sh Show resolved Hide resolved
test/python/scenarios.json Outdated Show resolved Hide resolved
jonbackhaus and others added 4 commits August 18, 2024 13:23
Reduce additional version check/s to only include 3.10 (to save time on testing at the expense of coverage, which we get elsewhere)

Co-authored-by: Samruddhi Khandale <[email protected]>
- specify exact alternate version: 3.10.5
- remove checks for 3.8,3.9.13 (now OBE)
…he base image build isn't clean

recent version of python:3.12 broke the install test because the APT cache wasn't clean
Copy link
Contributor Author

@jonbackhaus jonbackhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the build issue should be fixed -- I think it was a stale caching issue in non-alpine Python images. But I'm having issues running the tests locally, so it's hard to say if the full suite is currently passing.

jonbackhaus and others added 2 commits August 20, 2024 20:54
this is only necessary for distributions like alpine which have a (busybox) shim

the previous `--upgrade` flag was not compatible with all package managers; given that alpine does not have the package installed, it can be installed through the `check_packages()` function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants