From ca2242f508a6063c0048870e4122fb4ea3348db5 Mon Sep 17 00:00:00 2001 From: Ales Verbic Date: Wed, 1 May 2024 12:02:34 -0400 Subject: [PATCH] fix: volume map to default Docker Deskotp file sharing (/Users) Signed-off-by: Ales Verbic --- packages/cardano-cli/files/cardano-cli.sh.gotmpl | 6 +++--- packages/mithril-client/files/mithril-client.sh.gotmpl | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cardano-cli/files/cardano-cli.sh.gotmpl b/packages/cardano-cli/files/cardano-cli.sh.gotmpl index 2b3c313..72cbd84 100644 --- a/packages/cardano-cli/files/cardano-cli.sh.gotmpl +++ b/packages/cardano-cli/files/cardano-cli.sh.gotmpl @@ -27,13 +27,13 @@ else fi # Run cardano-cli via Docker -# We map the host filesystem and node socket into the container +# We map the /Users and node socket into the container docker run \ -ti \ --rm \ -u $(id -u):$(id -g) \ - -v /:/host \ - -w /host$(pwd) \ + -v /Users:/Users \ + -w $(pwd) \ -e CARDANO_NODE_SOCKET_PATH=/ipc/node.socket \ "${_docker_args[@]}" \ ghcr.io/blinklabs-io/cardano-cli:{{ .Package.Version }} \ diff --git a/packages/mithril-client/files/mithril-client.sh.gotmpl b/packages/mithril-client/files/mithril-client.sh.gotmpl index a807fd2..db86670 100644 --- a/packages/mithril-client/files/mithril-client.sh.gotmpl +++ b/packages/mithril-client/files/mithril-client.sh.gotmpl @@ -9,7 +9,7 @@ for i in ${!_options[@]}; do _found=false # remap absolute paths to /host in the container if [[ ${k} =~ ^/ ]]; then - k="/host${k}" + k="${k}" _options[i]=${k}; continue fi @@ -44,13 +44,13 @@ done _args=$(echo ${_args} | sed -e 's/^ //') # Run mithril-client-cli via Docker -# We map the host filesystem into the container +# We map the /Users into the container docker run \ -ti \ --rm \ -u $(id -u):$(id -g) \ - -v /:/host \ - -w /host$(pwd) \ + -v /Users:/Users \ + -w $(pwd) \ --entrypoint /bin/bash \ -e AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT} \ -e GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY} \