Skip to content

Instantly share code, notes, and snippets.

@nestorbonilla
Last active February 6, 2024 03:02
Show Gist options
  • Save nestorbonilla/eb4b10ca63c4fb0b6a398bbb119dc282 to your computer and use it in GitHub Desktop.
Save nestorbonilla/eb4b10ca63c4fb0b6a398bbb119dc282 to your computer and use it in GitHub Desktop.
Steps to set up a local node on Celo using Docker
Setup the local node
mkdir celo-node
cd celo-node
export CELO_IMAGE=us.gcr.io/celo-org/geth:alfajores
docker pull $CELO_IMAGE
docker run --name celo-node \
-it \
--restart always \
--stop-timeout 300 \
-p 127.0.0.1:8545:8545 \
-v $PWD:/root/.celo $CELO_IMAGE \
--verbosity 3 \
--syncmode lightest \
--http \
--http.addr 0.0.0.0 \
--http.api eth,net,web3,debug,admin,personal \
--alfajores \
--light.serve 0 \
--datadir /root/.celo \
--allow-insecure-unlock
Create an account with the local node
docker run -v $PWD:/root/.celo --rm -it $CELO_IMAGE account new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment