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
This commit is contained in:
Clark Boylan 2020-09-08 11:27:14 -07:00
parent ebd9c4c59e
commit 3966bcdf4e
1 changed files with 14 additions and 0 deletions

View File

@ -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