From 3966bcdf4ea75fcd5382ba5c77a831cecfd35be2 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 8 Sep 2020 11:27:14 -0700 Subject: [PATCH] Add dev packages on arm64 for docker-compose installation We install docker-compose from pypi in order to get newer features (particularly useful for gerrit). On x86 all the deps for this have wheels and we don't need build deps but on arm64 wheels don't exist for things like cffi. Add build-essential, python3-dev, libffi-dev, and libssl-dev to ensure we can build the necessary deps to install docker-compose on arm64. Change-Id: Id9c61dc904d34d2f7cbe17c70ad736a9562bb923 --- playbooks/roles/install-docker/tasks/main.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/playbooks/roles/install-docker/tasks/main.yaml b/playbooks/roles/install-docker/tasks/main.yaml index 91b08590a8..8d9b9a7a7e 100644 --- a/playbooks/roles/install-docker/tasks/main.yaml +++ b/playbooks/roles/install-docker/tasks/main.yaml @@ -17,6 +17,20 @@ # We install docker-compose from pypi to get features like # stop_grace_period. + +# On arm64 we need build-essential, python3-dev, libffi-dev, and libssl-dev +# because wheels don't exist for all the things on arm64 + +- name: Install arm64 dev pacakges + when: ansible_architecture == 'aarch64' + package: + name: + - build-essential + - python3-dev + - libffi-dev + - libssl-dev + state: present + - name: ensure pip3 is installed include_role: name: pip3