-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (76 loc) · 2.29 KB
/
docker-compose.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
version: '3.2'
services:
# https://github.com/duaraghav8/Ethlint
ethlint:
container_name: eth-ci.ethlint
image: eth-ci.ethlint
build:
context: ./tools/ethlint
environment:
- ETHLINT_CONFIG_FILE=${ETHLINT_CONFIG_FILE}
- ETHLINT_CONTRACTS_DIR=${ETHLINT_CONTRACTS_DIR}
volumes:
- ${TRUFFLE_PROJECT_PATH}:/app
- ${TRUFFLE_PROJECT_PATH}/logs:/app/logs:rw
# https://github.com/crytic/eth-security-toolbox
eth-security-toolbox:
container_name: eth-ci.eth-security-toolbox
image: eth-ci.eth-security-toolbox
build:
context: ./tools/eth-security-toolbox
environment:
- SOLC_VERSION=${SOLC_VERSION}
volumes:
- ${TRUFFLE_PROJECT_PATH}:/home/ethsec/app
- ${TRUFFLE_PROJECT_PATH}/logs:/home/ethsec/logs:rw
# https://github.com/trufflesuite/ganache-cli
ganache:
container_name: eth-ci.ganache-cli
image: eth-ci.ganache-cli
build:
context: ./tools/ganache-cli
command: ganache-cli ${GANACHE_CLI_FLAGS}
volumes:
- ${TRUFFLE_PROJECT_PATH}/logs:/app/logs:rw
# https://github.com/eth-sri/securify
securify:
container_name: eth-ci.securify
image: eth-ci.securify
build:
context: ./tools/securify
command: securify --truffle
depends_on:
- truffle
volumes:
- ${TRUFFLE_PROJECT_PATH}:/project:rw
- ${TRUFFLE_PROJECT_PATH}/logs:/app/logs:rw
# https://github.com/protofire/solhint
solhint:
container_name: eth-ci.solhint
image: eth-ci.solhint
build:
context: ./tools/solhint
environment:
- SOLHINT_CONFIG_FILE=${SOLHINT_CONFIG_FILE}
- SOLHINT_CONTRACTS_EXECUTION_PATH=${SOLHINT_CONTRACTS_EXECUTION_PATH}
volumes:
- ${TRUFFLE_PROJECT_PATH}:/app
- ${TRUFFLE_PROJECT_PATH}/logs:/app/logs:rw
# https://github.com/trufflesuite/truffle
truffle:
container_name: eth-ci.truffle
image: eth-ci.truffle
build:
context: ./tools/truffle
stdin_open: true
tty: true
depends_on:
- ganache
environment:
- VOLUME=${TRUFFLE_PROJECT_PATH}
volumes:
# mount the docker sock from the host
# so the container can execute docker commands
- /var/run/docker.sock:/var/run/docker.sock
- ${TRUFFLE_PROJECT_PATH}:/app:rw
- ${TRUFFLE_PROJECT_PATH}/logs:/app/logs:rw