docker-compose/tasks/docker-wrapper.yml
Knut Ahlers eb1f23abad
Fix: Use current workdir for mount / workdir
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-11-26 15:30:16 +01:00

23 lines
514 B
YAML

---
- name: Install wrapper script
copy:
content: |
#!/bin/bash
set -euo pipefail
exec docker run --rm -i \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-v "$(pwd):$(pwd):ro" \
-w "$(pwd)" \
luzifer/docker-compose \
"$@"
dest: /usr/local/bin/docker-compose
group: root
mode: '0755'
owner: root
register: docker_compose
- set_fact: docker_compose_binary_path="/usr/local/bin/docker-compose"
...