2020-08-15 16:38:10 -07:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: eth-devnet
|
|
|
|
labels:
|
|
|
|
app: eth-devnet
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 8545
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: eth-devnet
|
|
|
|
---
|
2021-09-28 02:26:31 -07:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: eth-devnet2
|
|
|
|
labels:
|
|
|
|
app: eth-devnet2
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 8546
|
|
|
|
targetPort: 8545
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
|
|
|
clusterIP: None
|
|
|
|
selector:
|
|
|
|
app: eth-devnet2
|
|
|
|
---
|
2020-08-15 16:38:10 -07:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: eth-devnet
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: eth-devnet
|
|
|
|
serviceName: eth-devnet
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: eth-devnet
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 1
|
|
|
|
containers:
|
2020-08-17 03:11:50 -07:00
|
|
|
- name: ganache
|
2020-08-15 16:38:10 -07:00
|
|
|
image: eth-node
|
|
|
|
command:
|
|
|
|
- npx
|
|
|
|
- ganache-cli
|
2021-11-29 23:27:23 -08:00
|
|
|
- -e 10000
|
2020-08-15 16:38:10 -07:00
|
|
|
- --deterministic
|
2022-04-15 04:39:02 -07:00
|
|
|
# NOTE(2022-04-13): Some unit tests need block timestamp
|
|
|
|
# to be sufficiently far above UNIX epoch (Pyth EVM tests
|
|
|
|
# check feed staleness logic against 0 as lowest possible
|
|
|
|
# timestamp)
|
|
|
|
- --time="1970-01-02T00:00:00+00:00"
|
2020-08-15 16:38:10 -07:00
|
|
|
- --host=0.0.0.0
|
|
|
|
ports:
|
|
|
|
- containerPort: 8545
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
2020-11-27 16:33:57 -08:00
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: rpc
|
2020-08-17 03:11:50 -07:00
|
|
|
- name: tests
|
|
|
|
image: eth-node
|
2021-07-28 05:13:45 -07:00
|
|
|
stdin: true
|
2020-08-17 03:11:50 -07:00
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
2022-05-18 06:12:26 -07:00
|
|
|
- "npm run migrate -- --network development &&
|
2022-05-13 01:25:35 -07:00
|
|
|
npx truffle test test/pyth.js 2>&1 &&
|
|
|
|
nc -lkp 2000 0.0.0.0"
|
2021-09-28 02:26:31 -07:00
|
|
|
readinessProbe:
|
|
|
|
periodSeconds: 1
|
|
|
|
failureThreshold: 300
|
|
|
|
tcpSocket:
|
|
|
|
port: 2000
|
|
|
|
- name: mine
|
|
|
|
image: eth-node
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
|
|
|
- "npx truffle exec mine.js"
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: eth-devnet2
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: eth-devnet2
|
|
|
|
serviceName: eth-devnet2
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: eth-devnet2
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 1
|
|
|
|
containers:
|
|
|
|
- name: ganache
|
|
|
|
image: eth-node
|
|
|
|
command:
|
|
|
|
- npx
|
|
|
|
- ganache-cli
|
2021-11-29 23:27:23 -08:00
|
|
|
- -e 10000
|
2021-09-28 02:26:31 -07:00
|
|
|
- --deterministic
|
|
|
|
- --time="1970-01-01T00:00:00+00:00"
|
|
|
|
- --host=0.0.0.0
|
2021-10-05 15:47:14 -07:00
|
|
|
- --chainId=1397
|
2021-09-28 02:26:31 -07:00
|
|
|
ports:
|
|
|
|
- containerPort: 8545
|
|
|
|
name: rpc
|
|
|
|
protocol: TCP
|
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: rpc
|
|
|
|
- name: tests
|
|
|
|
image: eth-node
|
|
|
|
stdin: true
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
2022-09-23 10:19:02 -07:00
|
|
|
- "npm run migrate -- --network development &&
|
2022-05-18 06:12:26 -07:00
|
|
|
nc -lkp 2000 0.0.0.0"
|
2021-07-28 05:13:45 -07:00
|
|
|
readinessProbe:
|
2020-11-27 16:33:57 -08:00
|
|
|
periodSeconds: 1
|
2021-07-28 04:37:18 -07:00
|
|
|
failureThreshold: 300
|
2020-11-27 16:33:57 -08:00
|
|
|
tcpSocket:
|
|
|
|
port: 2000
|
2020-11-18 04:56:56 -08:00
|
|
|
- name: mine
|
|
|
|
image: eth-node
|
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
|
|
|
- "npx truffle exec mine.js"
|