Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions midnight-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,4 @@
# ./midnight-node wizards register1 USE Ogmios hostname: host.docker.internal
#

if [ -z "$MIDNIGHT_NODE_IMAGE" ]; then
echo "Error: Env var MIDNIGHT_NODE_IMAGE is not set or is empty"
echo "Please install direnv and run 'direnv allow' to activate it."
exit 1
fi

if [[ "$(uname)" == "Darwin" ]]; then
# For arm mac persuade docker to be more liberal:
export DOCKER_DEFAULT_PLATFORM=linux/arm64
fi

docker run -it \
-e CFG_PRESET="${CFG_PRESET}" \
-e DB_SYNC_POSTGRES_CONNECTION_STRING="${DB_SYNC_POSTGRES_CONNECTION_STRING}" \
-v ./data:/data \
-v "./envs/${CFG_PRESET}/pc-chain-config.json:/pc-chain-config.json" \
--entrypoint bash \
"${MIDNIGHT_NODE_IMAGE}"
docker exec -it midnight bash