Skip to content

Commit

Permalink
Hack to deal with ansible/jinja2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ivotron committed Feb 22, 2017
1 parent 6bffe97 commit dbe7339
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/run-compose.yml
Expand Up @@ -4,15 +4,14 @@

- name: write compose file
copy:
content: "{{ bench.compose | to_nice_yaml }}"
content: '{{ bench.compose | to_yaml | regex_replace("cpu_quota: ''([0-9]+)''", "cpu_quota: \1") }}'
dest: "/tmp/docker-compose.yml"

- name: run compose
shell: >
docker run --rm --name=compose \
--volume /tmp/docker-compose.yml:/docker-compose.yml \
--volume `which docker`:/usr/bin/docker \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /usr/lib/x86_64-linux-gnu/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7 \
--volume /tmp/docker-compose.yml:/docker-compose.yml \
docker/compose:1.11.1 up \
--force-recreate --abort-on-container-exit

0 comments on commit dbe7339

Please sign in to comment.