
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
43 lines
962 B
YAML
43 lines
962 B
YAML
- name: Create docker directory
|
|
become: yes
|
|
file:
|
|
state: directory
|
|
path: /etc/docker
|
|
|
|
- name: Install docker-ce from upstream
|
|
include: upstream.yaml
|
|
when: use_upstream_docker|bool
|
|
|
|
- name: Install docker-engine from distro
|
|
include: distro.yaml
|
|
when: not use_upstream_docker|bool
|
|
|
|
- name: reset ssh connection to pick up docker group
|
|
meta: reset_connection
|
|
|
|
# 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
|
|
|
|
- name: Install docker-compose
|
|
pip:
|
|
name: docker-compose
|
|
state: present
|
|
executable: pip3
|