-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_diff_fuz.yml
110 lines (105 loc) · 2.22 KB
/
docker-compose_diff_fuz.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3'
services:
generator:
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6
command:
- python3.10
- fuzz/generators/run_diff.py
- /corpus
networks:
- db
- queue_opt_gas
- queue_opt_codesize
environment:
PYTHONPATH: /app
depends_on:
- mongodb
- queue_adder
- queue_nagini
volumes:
- corpus:/corpus
- ./docker/config_nagini_vs_adder.yml:/app/config.yml
# compiler 0
queue_adder:
image: rabbitmq:management
networks:
- queue_opt_gas
ports:
- "15672:15672"
runner_adder:
deploy:
replicas: 3
restart: always
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6
environment:
PYTHONPATH: /app
SERVICE_NAME: adder
depends_on:
- mongodb
- queue_adder
command:
- python3.10
- fuzz/runners/runner_diff.py
networks:
- db
- queue_opt_gas
volumes:
- ./docker/config_nagini_vs_adder.yml:/app/config.yml
# compiler 1
queue_nagini:
image: rabbitmq:management
networks:
- queue_opt_codesize
ports:
- "15673:15672"
runner_nagini:
deploy:
replicas: 3
restart: always
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6-nagini
environment:
PYTHONPATH: /app
SERVICE_NAME: nagini
depends_on:
- mongodb
- queue_nagini
command:
- python3.10
- fuzz/runners/runner_diff.py
networks:
- db
- queue_opt_codesize
volumes:
- ./docker/config_nagini_vs_adder.yml:/app/config.yml
verifier:
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6
environment:
PYTHONPATH: /app
depends_on:
- mongodb
command:
- python3.10
- fuzz/verifiers/simple_verifier.py
networks:
- db
volumes:
- ./docker/config_nagini_vs_adder.yml:/app/config.yml
mongodb:
image: mongo
networks:
- db
ports:
- "27017:27017"
volumes:
- db:/data/db
networks:
db:
driver: bridge
queue_opt_gas:
driver: bridge
queue_opt_codesize:
driver: bridge
volumes:
db:
corpus:
# TODO: come up with queues' volumes to not lose it in case of a failure