File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN echo "Building tags/${NODE_VERSION}..." \
21
21
&& rm -rf /root/.cabal/store/ghc-${GHC_VERSION}
22
22
23
23
FROM ghcr.io/blinklabs-io/cardano-cli:8.22.0.0 AS cardano-cli
24
- FROM ghcr.io/blinklabs-io/mithril-client:0.7.6 -1 AS mithril-client
24
+ FROM ghcr.io/blinklabs-io/mithril-client:0.8.0 -1 AS mithril-client
25
25
FROM ghcr.io/blinklabs-io/nview:0.9.3 AS nview
26
26
FROM ghcr.io/blinklabs-io/txtop:0.8.0 AS txtop
27
27
Original file line number Diff line number Diff line change 14
14
15
15
# Mithril
16
16
if ! test -e /data/db/protocolMagicId; then
17
- __base=https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration
18
17
RESTORE_NETWORK=${RESTORE_NETWORK:- true}
19
18
if [[ ${RESTORE_NETWORK} != true ]]; then
20
19
__skip=true
@@ -28,14 +27,14 @@ if ! test -e /data/db/protocolMagicId; then
28
27
if [[ ${__skip} != true ]]; then
29
28
export GENESIS_VERIFICATION_KEY=$( < /opt/cardano/config/${NETWORK} /genesis.vkey)
30
29
export AGGREGATOR_ENDPOINT=https://aggregator.${__path} .api.mithril.network/aggregator
31
- export SNAPSHOT_DIGEST=$( mithril-client snapshot list --json | jq -r ' .[0].digest' )
30
+ export SNAPSHOT_DIGEST=$( mithril-client cardano-db snapshot list --json | jq -r ' .[0].digest' )
32
31
mkdir -p /data
33
32
cd /data
34
- echo " Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST} "
33
+ echo " Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} "
35
34
# Handle SIGTERM during initial sync
36
35
trap ' kill -TERM $(pidof mithril-client)' TERM
37
36
# Run mithril-client in the background so we can capture the PID and wait
38
- mithril-client snapshot download ${SNAPSHOT_DIGEST} &
37
+ mithril-client cardano-db snapshot download ${SNAPSHOT_DIGEST} &
39
38
_mithril_pid=$!
40
39
wait $_mithril_pid || exit $?
41
40
# Reset signal handler and wait again (to avoid race condition)
Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
96
96
mkdir -p $( dirname ${CARDANO_DATABASE_PATH} )
97
97
cd $( dirname ${CARDANO_DATABASE_PATH} )
98
98
export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY SNAPSHOT_DIGEST
99
- echo " Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST} "
99
+ echo " Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} "
100
100
if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
101
101
rm -rf db/*
102
102
fi
103
103
# Handle SIGTERM during initial sync
104
104
trap ' kill -TERM $(pidof mithril-client)' TERM
105
105
# Run mithril-client in the background so we can capture the PID and wait
106
- mithril-client snapshot download ${SNAPSHOT_DIGEST} &
106
+ mithril-client cardano-db download ${SNAPSHOT_DIGEST} &
107
107
_mithril_pid=$!
108
108
wait $_mithril_pid || exit $?
109
109
# Reset signal handler and wait again (to avoid race condition)
You can’t perform that action at this time.
0 commit comments