-
Notifications
You must be signed in to change notification settings - Fork 397
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
Improve support for linux/arm64/v8
on most Ubuntu-based images (part 2)
#1630
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4fe8de0
Support `linux/arm64/v8` for most Ubuntu-based images
ianks 3c63a15
Fix ref to `apt-cross-essential.sh`
ianks 33b3ddb
fix build errors
garasubo 1a09c0a
rename changelog file
garasubo 0dcca26
revert dockerfile changes
garasubo a581024
update debian keys
garasubo 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "added", | ||
"description": "Add docker platform support for `linux/arm64/v8` target for many Ubuntu-based targets" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
. lib.sh | ||
|
||
main() { | ||
local narch | ||
local -a packages | ||
|
||
narch="$(dpkg --print-architecture)" | ||
packages+=("libc6-dev-${TARGET_ARCH}-cross:${narch}") | ||
|
||
# Install crossbuild-essential if CROSSBUILD_ESSENTIAL is set | ||
if [ -n "${CROSSBUILD_ESSENTIAL:-}" ]; then | ||
packages+=("crossbuild-essential-${TARGET_ARCH}:${narch}") | ||
fi | ||
|
||
if ! command -v "${CROSS_TOOLCHAIN_PREFIX}g++" &>/dev/null; then | ||
packages+=("g++-${TARGET_TRIPLE}:${narch}") | ||
fi | ||
|
||
if ! command -v "${CROSS_TOOLCHAIN_PREFIX}gfortran" &>/dev/null; then | ||
packages+=("gfortran-${TARGET_TRIPLE}:${narch}") | ||
fi | ||
|
||
install_packages "${packages[@]}" | ||
|
||
rm "${0}" | ||
} | ||
|
||
main "${@}" |
This file contains 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 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 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 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 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 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.
This file is not used anymore, i think however it would be worth to incorporate the command checking it does since the previous pr mentioned it was needed to avoid issues with gfortran
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.
I'm not sure what kind of issues with gfortran the previous pr were referring to. But it looks all Dockerfiles have
apt install gfortran-${TARGET_TRIPLE}
. Is there anything else that should be done? Otherwise, I'll just remove this file from the pr.