-
Notifications
You must be signed in to change notification settings - Fork 5
/
trader.yml
100 lines (96 loc) · 3.15 KB
/
trader.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
version: '3.8'
services:
public.deposit:
image: hbswap-go
build:
context: .
dockerfile: Dockerfile
target: go-deps
environment:
POADIR: /opt/poa
POA_KEYSTORE: /opt/poa/keystore
#networks:
# - hbswap
working_dir: /usr/src/scripts
volumes:
#- ./conf/client.toml:/opt/hbswap/conf/client.toml
- ./conf/client_aws.toml:/opt/hbswap/conf/client.toml
- ./poa:/opt/poa
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./scripts:/usr/src/scripts
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
entrypoint: ""
# TODO wait for contract to be deployed/available
command: ["bash", "client-public-deposit.sh"]
#command: ["bash", "client-public-deposit.sh", "$HBSWAP_ETHNODE"]
secret.deposit:
image: hbswap-go
build:
context: .
dockerfile: Dockerfile
target: go-deps
environment:
POADIR: /opt/poa
POA_KEYSTORE: /opt/poa/keystore
#networks:
# - hbswap
working_dir: /usr/src/scripts
volumes:
#- ./conf/client.toml:/opt/hbswap/conf/client.toml
- ./conf/client_aws.toml:/opt/hbswap/conf/client.toml
- ./poa:/opt/poa
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./scripts:/usr/src/scripts
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
entrypoint: ""
# TODO wait for contract to be deployed/available
command: ["bash", "client-secret-deposit.sh"]
#command: ["bash", "client-secret-deposit.sh", "$HBSWAP_ETHNODE"]
trade-1:
image: hbswap:local
build:
context: .
dockerfile: Dockerfile
# FIXME is the poa stuff needed?
environment:
POADIR: /opt/poa
POA_KEYSTORE: /opt/poa/keystore
#networks:
# - hbswap
# FIXME is the poa stuff needed?
volumes:
- ./poa:/opt/poa
- ./conf/client_aws.toml:/opt/hbswap/conf/client.toml
#- ./conf/client.toml:/opt/hbswap/conf/client.toml
- ./scripts:/usr/src/scripts
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./src/python:/usr/src/honeybadgerswap-python
working_dir: /usr/src/scripts
#command: ["wait-for-it", "mpcnode3:8080", "--", "bash", "trade-1.sh"]
command: ["bash", "trade-1.sh"]
#command: ["bash", "trade-1.sh", "$HBSWAP_ETHNODE"]
trade-2:
image: hbswap:local
build:
context: .
dockerfile: Dockerfile
# FIXME is the poa stuff needed?
environment:
POADIR: /opt/poa
POA_KEYSTORE: /opt/poa/keystore
#networks:
# - hbswap
# FIXME is the poa stuff needed?
volumes:
- ./poa:/opt/poa
- ./conf/client_aws.toml:/opt/hbswap/conf/client.toml
#- ./conf/client.toml:/opt/hbswap/conf/client.toml
- ./scripts:/usr/src/scripts
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./src/python:/usr/src/honeybadgerswap-python
working_dir: /usr/src/scripts
#command: ["wait-for-it", "mpcnode3:8080", "--", "bash", "trade-2.sh"]
command: ["bash", "trade-2.sh"]
#command: ["bash", "trade-2.sh", "$HBSWAP_ETHNODE"]