Created
March 13, 2024 15:00
-
-
Save emberian/9d9a8ced3181569297d04a3b9a3b9ba3 to your computer and use it in GitHub Desktop.
Setup for running mina v1.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker exec -it $(basename $(pwd)) /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minaprotocol/mina-daemon:1.4.1beta1-6e8121c-focal-mainnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MINA_PRIVKEY_PASS="" | |
MINA_LIBP2P_PASS="" | |
LOG_LEVEL=Info | |
FILE_LOG_LEVEL=Trace | |
EXTRA_FLAGS=" --discovery-keypair /keys/libp2p-compatible" | |
VERBOSE=yes | |
PEER_LIST_URL=https://storage.googleapis.com/seed-lists/mainnet_seeds.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker logs -f $(basename $(pwd)) | docker exec -i $(basename $(pwd)) mina-logproc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ "$1" == restart ]; then | |
docker stop $(basename $(pwd)) | |
fi | |
TAG=$(cat docker-tag) | |
if [ ! -e "keys/libp2p.peerid" ]; then | |
mkdir -p keys | |
chmod 700 keys | |
docker run --env MINA_LIBP2P_PASS= --mount "type=bind,source=$(pwd)/keys,dst=/keys" --entrypoint /usr/local/bin/mina $TAG libp2p generate-keypair --privkey-path /keys/libp2p | |
fi | |
docker rm $(basename $(pwd)) | |
mkdir -p config | |
docker run --name $(basename $(pwd)) -d -p 8302:8302 \ | |
--mount "type=bind,source=$(pwd)/env,dst=/entrypoint.d/mina-env,readonly" \ | |
--mount "type=bind,source=$(pwd)/config,dst=/root/.mina-config" \ | |
--mount "type=bind,source=$(pwd)/keys,dst=/keys" \ | |
$TAG daemon | |
./log.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment