From d10822e1ae7a10ef00b42fcaaf567a052e3fd07a Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 24 May 2024 14:52:36 -0400 Subject: [PATCH] fix: disable cardano-node built-in mithril download Signed-off-by: Chris Gianelloni --- packages/cardano-node/cardano-node-8.9.2.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cardano-node/cardano-node-8.9.2.yaml b/packages/cardano-node/cardano-node-8.9.2.yaml index 13eee45..4eaaa4f 100644 --- a/packages/cardano-node/cardano-node-8.9.2.yaml +++ b/packages/cardano-node/cardano-node-8.9.2.yaml @@ -12,6 +12,7 @@ installSteps: env: CARDANO_NODE_SOCKET_PATH: /ipc/node.socket NETWORK: '{{ .Context.Network }}' + RESTORE_NETWORK: 'false' binds: - '{{ .Paths.ContextDir }}/config:/opt/cardano/config' - '{{ .Paths.ContextDir }}/node-ipc:/ipc' @@ -33,7 +34,10 @@ outputs: - name: socket_path description: Path to the Cardano Node UNIX socket value: '{{ .Paths.ContextDir }}/node-ipc/node.socket' -preInstallScript: 'test -e {{ .Paths.DataDir }}/data/db/protocolMagicId && exit 0 || mithril-client cardano-db download --download-dir {{ .Paths.DataDir }}/data latest' +preInstallScript: | + set -e + test -e {{ .Paths.DataDir }}/data/db/protocolMagicId && exit 0 + mithril-client cardano-db download --download-dir {{ .Paths.DataDir }}/data latest tags: - docker - linux