| 1 | #!/bin/bash |
| 2 | #run build-wheels script in manylinux2014 docker image |
| 3 | set -ex |
| 4 | |
| 5 | DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/aws-crt-manylinux2014-aarch64:latest |
| 6 | |
| 7 | $(aws --region us-east-1 ecr get-login --no-include-email) |
| 8 | |
| 9 | docker pull $DOCKER_IMAGE |
| 10 | |
| 11 | # NOTE: run as current user to avoid git "dubious ownership" error, |
| 12 | # and so that output artifacts don't belong to "root" |
| 13 | docker run --rm \ |
| 14 | --mount type=bind,source=`pwd`,target=/aws-crt-python \ |
| 15 | --user "$(id -u):$(id -g)" \ |
| 16 | --workdir /aws-crt-python \ |
| 17 | --entrypoint /bin/bash \ |
| 18 | $DOCKER_IMAGE \ |
| 19 | continuous-delivery/build-wheels-manylinux2014-aarch64.sh |