-
Notifications
You must be signed in to change notification settings - Fork 22
/
deploy-testnet.yml
44 lines (40 loc) · 1.1 KB
/
deploy-testnet.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
version: "3.9"
services:
machine:
image: cartesi/honeypot:devel-machine
command: xxd -c 256 -p latest/hash; sleep 3
volumes:
- machine:/var/opt/cartesi/machine-snapshots
authority-deployer:
image: cartesi/rollups-hardhat:1.0.0
command:
[
"deploy",
"--tags",
"Authority",
"--network",
"${NETWORK:?undefined NETWORK}",
"--export",
"/home/node/rollups.json",
]
volumes:
- ./deployments/${NETWORK:?undefined NETWORK}:/home/node
environment:
- MNEMONIC=${MNEMONIC:?undefined MNEMONIC}
- RPC_URL=${RPC_URL:?undefined RPC_URL}
dapp-deployer:
build: ./testnet-dapp-deployer
depends_on:
machine:
condition: service_started
authority-deployer:
condition: service_completed_successfully
volumes:
- machine:/var/opt/cartesi/machine-snapshots:ro
- ./deployments:/deployments
environment:
- MNEMONIC=${MNEMONIC:?undefined MNEMONIC}
- NETWORK=${NETWORK:?undefined NETWORK}
- RPC_URL=${RPC_URL:?undefined RPC_URL}
volumes:
machine: {}