Skip to content

Commit

Permalink
fix: volume map to default Docker Deskotp file sharing (/Users)
Browse files Browse the repository at this point in the history
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
  • Loading branch information
verbotenj committed May 1, 2024
1 parent ed0c041 commit ca2242f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/cardano-cli/files/cardano-cli.sh.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand Down
8 changes: 4 additions & 4 deletions packages/mithril-client/files/mithril-client.sh.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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} \
Expand Down

0 comments on commit ca2242f

Please sign in to comment.