Skip to content

Add support for Alpine to python feature#1015

Open
jonbackhaus wants to merge 63 commits intodevcontainers:mainfrom
jonbackhaus:python-alpine
Open

Add support for Alpine to python feature#1015
jonbackhaus wants to merge 63 commits intodevcontainers:mainfrom
jonbackhaus:python-alpine

Conversation

@jonbackhaus
Copy link
Copy Markdown
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
Copy Markdown
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 ✨

Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread test/python/scenarios.json
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh
Comment thread test/python/scenarios.json Outdated
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
Copy Markdown
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.

Comment thread src/python/NOTES.md
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
Comment thread test/python/scenarios.json
Comment thread test/python/scenarios.json
Comment thread test/python/scenarios.json
@jonbackhaus
Copy link
Copy Markdown
Contributor Author

Is there additional work required to get this merged? I believe all the comments have been addressed and all tests were passing as of the last time I ran them. Thank you!

Comment thread src/python/install.sh
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.

3 participants