-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_diff_fuz310.yml
110 lines (105 loc) · 2.19 KB
/
docker-compose_diff_fuz310.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_adder.py
- /corpus
networks:
- db
- queue_opt_gas
- queue_opt_codesize
environment:
PYTHONPATH: /app
depends_on:
- mongodb
- queue_opt_codesize
- queue_opt_gas
volumes:
- corpus:/corpus
- ./docker/config.yml:/app/config.yml
# compiler 0
queue_opt_codesize:
image: rabbitmq:management
networks:
- queue_opt_codesize
ports:
- "15672:15672"
runner_opt_codesize:
deploy:
replicas: 3
restart: always
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6
environment:
PYTHONPATH: /app
SERVICE_NAME: opt_codesize
depends_on:
- mongodb
- queue_opt_codesize
command:
- python3.10
- fuzz/runners/runner_opt.py
networks:
- db
- queue_opt_codesize
volumes:
- ./docker/config.yml:/app/config.yml
# compiler 1
queue_opt_gas:
image: rabbitmq:management
networks:
- queue_opt_gas
ports:
- "15673:15672"
runner_opt_gas:
deploy:
replicas: 3
restart: always
image: registry.statemind.io/vyper-fuzzer-generator:v0.1.6
environment:
PYTHONPATH: /app
SERVICE_NAME: opt_gas
depends_on:
- mongodb
- queue_opt_gas
command:
- python3.10
- fuzz/runners/runner_opt.py
networks:
- db
- queue_opt_gas
volumes:
- ./docker/config.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.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