forked from MARKETProtocol/MARKETProtocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 1.83 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
version: '3.4'
services:
truffle:
build:
context: .
image: market-protocol:1.0.1
command: truffle develop
tmpfs:
- /app/build
- /app/node_modules:exec,mode=777
volumes:
- type: bind
source: ./
target: /app
tty: true
stdin_open: true
eth-bridge:
image: cryptomental/ethereum-bridge:latest
entrypoint: >
/bin/bash -c "
while ! curl ${TRUFFLE_DEVELOP_HOST}:${TRUFFLE_DEVELOP_PORT} &>/dev/null;
do
echo Waiting for Ethereum node...;
sleep 1;
done;
echo Ethereum node ready, connecting the Oraclize Bridge!;
sleep 1;
echo Wiping old configs...;
rm -rf /ethereum-bridge/config/instance/*;
node bridge -H ${TRUFFLE_DEVELOP_HOST}:${TRUFFLE_DEVELOP_PORT} -a 9 --dev;
"
restart: unless-stopped
depends_on:
- truffle
links:
- truffle
truffle-coverage:
build:
context: .
image: market-protocol:1.0.1
command: scripts/coverage_setup.sh
tmpfs:
- /app/build
- /app/node_modules:exec,mode=777
volumes:
- type: bind
source: ./
target: /app
tty: true
stdin_open: true
eth-bridge-coverage:
image: cryptomental/ethereum-bridge:latest
entrypoint: >
/bin/bash -c "
while ! curl ${TRUFFLE_COVERAGE_HOST}:${TRUFFLE_COVERAGE_PORT} &>/dev/null;
do
echo Waiting for Ethereum node...;
sleep 1;
done;
echo Ethereum node ready, connecting the Oraclize Bridge!;
sleep 1;
echo Wiping old configs...;
rm -rf /ethereum-bridge/config/instance/*;
node bridge -H ${TRUFFLE_COVERAGE_HOST}:${TRUFFLE_COVERAGE_PORT} -a 9 --dev;
"
restart: unless-stopped
depends_on:
- truffle-coverage
links:
- truffle-coverage