Skip to content

Commit 68496e3

Browse files
authored
Merge pull request #487 from input-output-hk/jpraynaud/364-fix-genesis-bootstrap-testnet
Update Genesis GCP infra
2 parents 295b7c4 + c4aaf48 commit 68496e3

File tree

2 files changed

+10
-47
lines changed

2 files changed

+10
-47
lines changed

mithril-infra/docker-compose.yaml

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ services:
6969
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
7070
- CARDANO_CLI_PATH=/app/bin/cardano-cli
7171
- GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY}
72+
- GENESIS_SECRET_KEY=${GENESIS_SECRET_KEY}
7273
volumes:
7374
- ./${NETWORK}/mithril-aggregator:/mithril-aggregator
7475
- ./${NETWORK}/node.db:/db
@@ -97,53 +98,6 @@ services:
9798
- 'traefik.http.routers.my-app.tls=true'
9899
- 'traefik.http.routers.my-app.tls.certresolver=lets-encrypt'
99100

100-
mithril-aggregator-genesis:
101-
image: ghcr.io/input-output-hk/mithril-aggregator:${IMAGE_ID:-latest}
102-
restart: always
103-
user: ${CURRENT_UID}
104-
profiles:
105-
- mithril-genesis
106-
environment:
107-
- RUST_BACKTRACE=1
108-
- NETWORK_MAGIC=1097911063
109-
- GOOGLE_APPLICATION_CREDENTIALS_JSON=${GOOGLE_APPLICATION_CREDENTIALS_JSON}
110-
- NETWORK=${NETWORK:-testnet}
111-
- PROTOCOL_PARAMETERS__K=5
112-
- PROTOCOL_PARAMETERS__M=100
113-
- PROTOCOL_PARAMETERS__PHI_F=0.65
114-
- RUN_INTERVAL=60000
115-
- URL_SNAPSHOT_MANIFEST=https://storage.googleapis.com/cardano-${NETWORK:-testnet}/snapshots.json
116-
- SNAPSHOT_STORE_TYPE=local
117-
- SNAPSHOT_UPLOADER_TYPE=gcp
118-
- DATA_STORES_DIRECTORY=/mithril-aggregator
119-
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
120-
- CARDANO_CLI_PATH=/app/bin/cardano-cli
121-
- GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY}
122-
- GENESIS_SECRET_KEY=${GENESIS_SECRET_KEY}
123-
volumes:
124-
- ./testnet/mithril-aggregator:/mithril-aggregator
125-
- ./testnet/node.db:/db
126-
- ./ipc:/ipc
127-
ports:
128-
- "8080:8080"
129-
command:
130-
[
131-
"--db-directory",
132-
"/db",
133-
"--snapshot-directory",
134-
"/mithril-aggregator/snapshots",
135-
"--server-port",
136-
"8080",
137-
"-vvv",
138-
"genesis",
139-
"bootstrap"
140-
]
141-
logging:
142-
driver: "json-file"
143-
options:
144-
max-size: "100m"
145-
max-file: "5"
146-
147101
mithril-signer-0:
148102
image: ghcr.io/input-output-hk/mithril-signer:${IMAGE_ID:-latest}
149103
restart: always

mithril-infra/genesis.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Bootstrap a Genesis Certificate (test only)
2+
3+
:warning: This operation will reset and invalidate the current `Certificate Chain`
4+
5+
The commands to run when bootstrapping are:
6+
7+
1. Open a bash terminal on the `mithril-aggregator` node with `docker-compose exec mithril-aggregator bash`
8+
9+
2. Run the following command once connected `/app/bin/mithril-aggregator -vvv genesis bootstrap`

0 commit comments

Comments
 (0)