forked from OffchainLabs/eth-pos-devnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-init.yaml
44 lines (41 loc) · 1.19 KB
/
docker-compose-init.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
name: devnet-genesis
services:
custom-geth-genesis:
image: "node:20-alpine"
working_dir: /genesis
# 2.24.0 required
env_file:
- path: .env
required: false
volumes:
- ./genesis:/genesis
- ./data/geth:/geth
- ./config:/config:ro
entrypoint: ["node", "index.mjs"]
create-beacon-chain-genesis:
image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl:v5.0.3"
command:
- testnet
- generate-genesis
- --fork=deneb
- --num-validators=1
- --genesis-time-delay=10
- --chain-config-file=/config/config.yml
- --geth-genesis-json-in=/geth/genesis.json
- --geth-genesis-json-out=/geth/genesis.json
- --output-ssz=/prysm/genesis.ssz
volumes:
- ./data/geth:/geth
- ./data/prysm:/prysm
- ./config/config.yml:/config/config.yml:ro
depends_on:
custom-geth-genesis:
condition: service_completed_successfully
init-geth-genesis:
image: "ethereum/client-go:v1.14.5"
command: init --cache.preimages=true --datadir /geth /geth/genesis.json
volumes:
- ./data/geth:/geth
depends_on:
create-beacon-chain-genesis:
condition: service_completed_successfully