-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually use manylinux2014 docker image. (#194)
Actually use the manylinux2014 docker images, instead of just running on an EC2 instance that's similar enough that we happen to pass the wheel audit. Also, setup.py improvements: - accept `cmake3` as well as `cmake`. - slight cleanup of how AWS_LIBCRYPTO_INSTALL is used.
- Loading branch information
Showing
9 changed files
with
133 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ lib64/ | |
parts/ | ||
sdist/ | ||
var/ | ||
wheelhouse/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
|
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
15 changes: 15 additions & 0 deletions
15
continuous-delivery/build-wheels-manylinux2014-aarch64-jenkins.sh
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,15 @@ | ||
#!/bin/bash | ||
#run build-wheels script in manylinux2014 docker image | ||
set -ex | ||
|
||
DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/aws-crt/manylinux2014-aarch64:latest | ||
|
||
$(aws --region us-east-1 ecr get-login --no-include-email) | ||
|
||
docker pull $DOCKER_IMAGE | ||
|
||
docker run \ | ||
--mount type=bind,source=`pwd`,target=/aws-crt-python \ | ||
--workdir /aws-crt-python \ | ||
--entrypoint /aws-crt-python/continuous-delivery/build-wheels-manylinux2014-aarch64.sh \ | ||
$DOCKER_IMAGE |
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,27 @@ | ||
#!/bin/bash | ||
#assumes image based on manylinux2014 + extras (cmake3, libcrypto, etc) | ||
set -ex | ||
|
||
/opt/python/cp38-cp38/bin/python ./continuous-delivery/update-version.py | ||
|
||
export AWS_LIBCRYPTO_INSTALL=/opt/openssl | ||
|
||
/opt/python/cp35-cp35m/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp35*.whl | ||
|
||
/opt/python/cp36-cp36m/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp36*.whl | ||
|
||
/opt/python/cp37-cp37m/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp37*.whl | ||
|
||
/opt/python/cp38-cp38/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp38*.whl | ||
|
||
/opt/python/cp39-cp39/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp39*.whl | ||
|
||
rm dist/*.whl | ||
cp -rv wheelhouse/* dist/ | ||
|
||
#now you just need to run twine (that's in a different script) |
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
continuous-delivery/build-wheels-manylinux2014-x86_64-jenkins.sh
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,15 @@ | ||
#!/bin/bash | ||
#run build-wheels script in manylinux2014 docker image | ||
set -ex | ||
|
||
DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/aws-crt/manylinux2014-x64:latest | ||
|
||
$(aws --region us-east-1 ecr get-login --no-include-email) | ||
|
||
docker pull $DOCKER_IMAGE | ||
|
||
docker run \ | ||
--mount type=bind,source=`pwd`,target=/aws-crt-python \ | ||
--workdir /aws-crt-python \ | ||
--entrypoint /aws-crt-python/continuous-delivery/build-wheels-manylinux2014-x86_64.sh \ | ||
$DOCKER_IMAGE |
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