-
Notifications
You must be signed in to change notification settings - Fork 92
feat(clp-package): Parameterize clp-package Docker image by Ubuntu codename; auto-detect host version. #2273
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
Changes from all commits
7782bc1
351588b
5af1885
1da7e74
1fe226b
89ffe0d
be2cef5
45e57bb
d202c2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,15 @@ build_cmd=( | |
| --file "${script_dir}/Dockerfile" | ||
| ) | ||
|
|
||
| ubuntu_version_codename="jammy" | ||
| if [[ -f /etc/os-release ]]; then | ||
| host_codename="$(. /etc/os-release && echo "$VERSION_CODENAME")" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now, Should we expose the Ubuntu version codename as a Task argument or environment variable so the package target is not tied to the host release?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dynamic ubuntu version detection on host should make more sense. the main reason why we want to avoid hardcoding a version of the ubuntu image is because whatever (Python wheels, glibc dependent binaries, etc.) a non-Jammy host builds do not run inside the Jammy-based image container. the long-term plan is to migrate the base image from Ubuntu to Muslinux / Manylinux as @jackluo923 proposed. we (or whoever has bandwidth) can work on it in the next month. also, i think we shall explore setting up https://containers.dev/ too. for now, this PR can unblock our developers to develop on different versions of Ubuntu hosts, without use of Ubuntu Jammy build containers let me know what you think
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just realized that |
||
| if [[ -n "$host_codename" ]]; then | ||
| ubuntu_version_codename="$host_codename" | ||
| fi | ||
| fi | ||
| build_cmd+=(--build-arg "UBUNTU_VERSION_CODENAME=${ubuntu_version_codename}") | ||
|
|
||
| if command -v git >/dev/null && git -C "$script_dir" rev-parse --is-inside-work-tree >/dev/null; | ||
| then | ||
| build_cmd+=( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe open an issue to make this required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai open an issue to track making the
archinput required for.github/actions/clp-build-runtime-image. The issue should cover updating all current and future callers to passarchexplicitly, removing the default value, and verifying behavior for bothamd64andarm64. This is a follow-up cleanup and is out of scope for this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 1091
@junhaoliao, I've opened#2301to track this. It covers:default: "amd64"and settingrequired: trueon thearchinput.archexplicitly.amd64andarm64.