Skip to content

Commit

Permalink
arm64: docker-compose→paramiko→cryptography version pinned
Browse files Browse the repository at this point in the history
docker-compose depends on the cryptography package, v3.4 of which
introduces a build dependency on rust; let's avoid that for now.
https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07

This should be unpinned ASAP; hopefully docker-compose will offer binary
download for arm64 at some point:
docker/compose#7472
  • Loading branch information
pda committed Feb 8, 2021
1 parent ddfea9b commit e97ab5b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packer/linux/scripts/install-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ if [ "${MACHINE}" == "x86_64" ]; then
docker-compose --version
elif [[ "${MACHINE}" == "aarch64" ]]; then
sudo yum install -y gcc-c++ libffi-devel openssl11 openssl11-devel python3-devel
sudo pip3 install docker-compose

# docker-compose depends on the cryptography package, v3.4 of which
# introduces a build dependency on rust; let's avoid that for now.
# https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07
# This should be unpinned ASAP; hopefully docker-compose will offer binary
# download for arm64 at some point:
# https://github.com/docker/compose/issues/7472
sudo pip3 install --constraint <(echo 'cryptography<3.4') docker-compose

docker-compose version
else
echo "No docker compose option configured for arch ${MACHINE}"
Expand Down

0 comments on commit e97ab5b

Please sign in to comment.