-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.yml
32 lines (31 loc) · 844 Bytes
/
loader.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- hosts: hermes
gather_facts: no
become: yes
vars:
weave_env:
DOCKER_HOST: unix:///var/run/weave/weave.sock
tasks:
- name: erase loader
environment: "{{weave_env}}"
docker:
name: loader
image: registry.o-labs.ru/scala
state: absent
- name: run loader
environment: "{{weave_env}}"
docker:
name: loader
image: registry.o-labs.ru/scala
state: started
pull: always
volumes:
- "/srv/scala_projects:/opt"
- "/srv/ivy:/root/.ivy2"
ports:
- "4040:4040"
restart_policy: always
restart_policy_retry: 5
command: bash -c "while true; do i=1; done"
- name: resolver
shell: docker exec loader bash -c "echo 'nameserver 8.8.8.8' >> /etc/resolv.conf"