forked from atticlab/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqtum-devnet.yaml
90 lines (90 loc) · 2.09 KB
/
qtum-devnet.yaml
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
---
apiVersion: v1
kind: Service
metadata:
name: qtum-devnet
labels:
app: qtum-devnet
spec:
ports:
- port: 8545
name: rpc
protocol: TCP
clusterIP: None
selector:
app: qtum-devnet
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: qtum-devnet
spec:
selector:
matchLabels:
app: qtum-devnet
serviceName: qtum-devnet
replicas: 1
template:
metadata:
labels:
app: qtum-devnet
spec:
terminationGracePeriodSeconds: 1
containers:
- name: qtum-testchain
image: qtum/qtum
command:
- qtumd
- -regtest
- -txindex
- -addrindex=1
- -rpcbind=0.0.0.0:3889
- -rpcallowip=0.0.0.0/0
- -logevents=1
- -rpcuser=qtum
- -rpcpassword=testpasswd
- -deprecatedrpc=accounts
# - -printtoconsole
ports:
- containerPort: 3889
name: rpc
protocol: TCP
readinessProbe:
tcpSocket:
port: rpc
- name: janus
image: messer4/janus:dev
command:
- janus
- --bind
- 0.0.0.0
# - --dev
- --accounts
- /go/src/github.com/qtumproject/janus/myaccounts.txt
environment:
- QTUM_RPC=http://qtum:[email protected]:3889
- GENERATE_TO_ADDRESS=cMbgxCJrTYUqgcmiC1berh5DFrtY1KeU4PXZ6NZxgenniF1mXCRk
ports:
- containerPort: 23889
name: rpc
protocol: TCP
depends_on:
- qtum
readinessProbe:
tcpSocket:
port: rpc
- name: tests
image: qtum-contract
command:
- /home/node/app/devnet_setup.sh
startupProbe:
periodSeconds: 1
failureThreshold: 60
tcpSocket:
port: 2000
- name: mine
image: qtum-contract
command:
- /bin/sh
- -c
- "npx truffle exec mine.js"