Skip to content

Commit 13aae2f

Browse files
authored
fix: more sensible to shell into existing container. (#21)
1 parent b45e473 commit 13aae2f

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

midnight-shell.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,4 @@
88
# ./midnight-node wizards register1 USE Ogmios hostname: host.docker.internal
99
#
1010

11-
if [ -z "$MIDNIGHT_NODE_IMAGE" ]; then
12-
echo "Error: Env var MIDNIGHT_NODE_IMAGE is not set or is empty"
13-
echo "Please install direnv and run 'direnv allow' to activate it."
14-
exit 1
15-
fi
16-
17-
if [[ "$(uname)" == "Darwin" ]]; then
18-
# For arm mac persuade docker to be more liberal:
19-
export DOCKER_DEFAULT_PLATFORM=linux/arm64
20-
fi
21-
22-
docker run -it \
23-
-e CFG_PRESET="${CFG_PRESET}" \
24-
-e DB_SYNC_POSTGRES_CONNECTION_STRING="${DB_SYNC_POSTGRES_CONNECTION_STRING}" \
25-
-v ./data:/data \
26-
-v "./envs/${CFG_PRESET}/pc-chain-config.json:/pc-chain-config.json" \
27-
--entrypoint bash \
28-
"${MIDNIGHT_NODE_IMAGE}"
11+
docker exec -it midnight bash

0 commit comments

Comments
 (0)