-
-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-install go on the aarch64 wheel build image. (#17989)
- Loading branch information
Showing
3 changed files
with
11 additions
and
7 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
# For manylinux compatibility, we build Linux wheels in a container rather than directly | ||
# on the CI runner. This adds the AWS CLI to the standard manylinux image, which we need | ||
# in order to publish built wheels to S3. | ||
# on the CI runner. | ||
FROM quay.io/pypa/manylinux2014_aarch64:2023-01-03-129be5e | ||
|
||
# Add the AWS CLI, which we need in order to publish built wheels to S3. | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install && \ | ||
rm -rf ./aws && \ | ||
rm -f awscliv2.zip | ||
|
||
# The Go backend is enabled, we add a synthetic target for the Go SDK, which therefore | ||
# must be present even though wheel building does not need it. | ||
# TODO: Make the target generator lazy, so that unused tooling doesn't have to be present. | ||
RUN curl -LO "https://go.dev/dl/go1.17.1.linux-arm64.tar.gz" && \ | ||
tar -C /usr/local -xzf go1.17.1.linux-arm64.tar.gz | ||
|
||
ENV PATH="${PATH}:/usr/local/go/bin" |