install compose to a virtualenv to prevent os dependency mess up
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c274a3ce47
commit
eae84d80ec
@ -9,8 +9,17 @@
|
||||
- name: Install python dependencies
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
virtualenv: /opt/python2/ansible-deps
|
||||
loop: "{{ __docker_ansible_deps }}"
|
||||
|
||||
- name: Add docker-compose wrapper
|
||||
template:
|
||||
src: bin/docker-compose.j2
|
||||
dest: /bin/docker-compose
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
|
4
templates/bin/docker-compose.j2
Normal file
4
templates/bin/docker-compose.j2
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eo pipefail
|
||||
|
||||
exec /opt/python2/ansible-deps/bin/docker-compose "$@"
|
Loading…
Reference in New Issue
Block a user