-
Notifications
You must be signed in to change notification settings - Fork 88
feat(docker): Add mirror configuration options for manylinux build containers #1849
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
Open
jackluo923
wants to merge
2
commits into
y-scope:main
Choose a base branch
from
jackluo923:add-mirror
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
components/core/tools/docker-images/clp-env-base-manylinux_2_28-aarch64/Dockerfile
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,18 @@ component_root="${script_dir}/../../../" | |
| build_cmd=( | ||
| docker buildx build | ||
| --platform linux/arm64 | ||
| --build-arg "ALMALINUX_MIRROR=${ALMALINUX_MIRROR:-}" | ||
| --build-arg "QUAY_MIRROR=${QUAY_MIRROR:-quay.io}" | ||
|
Member
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. we may not need this |
||
| --tag clp-core-dependencies-aarch64-manylinux_2_28:dev | ||
| "$component_root" | ||
| --file "${script_dir}/Dockerfile" | ||
| --load | ||
| ) | ||
|
|
||
| if [[ "${USE_NETWORK_HOST:-}" == "true" ]]; then | ||
| build_cmd+=(--network=host) | ||
| fi | ||
|
|
||
| if command -v git >/dev/null && git -C "$script_dir" rev-parse --is-inside-work-tree >/dev/null ; | ||
| then | ||
| build_cmd+=( | ||
|
|
||
10 changes: 9 additions & 1 deletion
10
components/core/tools/docker-images/clp-env-base-manylinux_2_28-x86_64/Dockerfile
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,9 +1,17 @@ | ||||||
| # syntax=docker/dockerfile:1 | ||||||
|
|
||||||
| FROM quay.io/pypa/manylinux_2_28_x86_64 | ||||||
| ARG QUAY_MIRROR=quay.io | ||||||
| FROM ${QUAY_MIRROR}/pypa/manylinux_2_28_x86_64 | ||||||
|
|
||||||
| WORKDIR /root | ||||||
|
|
||||||
| ARG ALMALINUX_MIRROR | ||||||
| RUN if [ -n "${ALMALINUX_MIRROR}" ]; then \ | ||||||
| sed -i -e 's|^mirrorlist=|#mirrorlist=|g' \ | ||||||
| -e "s|^# baseurl=https://repo.almalinux.org|baseurl=https://${ALMALINUX_MIRROR}|g" \ | ||||||
|
Member
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.
Suggested change
|
||||||
| /etc/yum.repos.d/almalinux*.repo; \ | ||||||
| fi | ||||||
|
|
||||||
| RUN mkdir -p ./tools/scripts/lib_install | ||||||
| COPY --link ./tools/scripts/lib_install ./tools/scripts/lib_install | ||||||
|
|
||||||
|
|
||||||
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
Oops, something went wrong.
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.
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.
just in case the maintainers decide to use different amount of spaces? it might never happen though