Giter Club home page Giter Club logo

ethnodedockerfile's Introduction

  1. run mkdir jwt

  2. Generate a jwt by running command below and move to ./jwt

    openssl rand -hex 32 | tr -d "\n" > "./jwt/jwt.hex"
    
  3. run docker network create ethereum to create a network named ethereum

  4. build prysm docker image docker build -f consensusClient/dockerfile -t prysm-docker .

  5. build geth docker image docker build -f executionClient/dockerfile -t geth-docker .

  6. type bash in terminal to use bash (optional step, as in mac zsh running the command below will have zsh: no matches found: --authrpc.vhosts=* err)

  7. start execution client (geth) container by running

docker run -it -v $(pwd)/executionClient/data:/var/lib/goethereum -v $(pwd)/jwt:/tmp/jwt/jwtsecret -p 30303:30303/tcp -p 30303:30303/udp -p 8008:8008/tcp --network=ethereum --name execution-node ethereum/client-go:stable --http --http.api web3,eth,net,engine,admin --ws --ws.port=8546 --ws.api=engine,eth,web3,net,debug --authrpc.jwtsecret=/tmp/jwt/jwtsecret/jwt.hex --authrpc.addr=0.0.0.0 --authrpc.vhosts=* --datadir=/var/lib/goethereum --authrpc.port=8551
  1. start consensus client (prysm) container by running
docker run -it -v $(pwd)/consensusClient/data:/var/lib/prysm -v $(pwd)/jwt:/tmp/jwt/jwtsecret -p 4000:4000 -p 13000:13000 -p 12000:12000/udp --network=ethereum --name beacon-node prysm-docker --execution-endpoint=http://execution-node:8551 --jwt-secret=/tmp/jwt/jwtsecret/jwt.hex --rpc-host=0.0.0.0 --monitoring-host=0.0.0.0 --checkpoint-sync-url=https://mainnet-checkpoint-sync.stakely.io --genesis-beacon-api-url=https://mainnet-checkpoint-sync.stakely.io --accept-terms-of-use --suggested-fee-recipient=0x65E9d8b6069eEc1Ef3b8bfaE57326008b7aec2c9 --datadir=/var/lib/prysm --rpc-port=4001 --monitoring-port=5054 

ethnodedockerfile's People

Contributors

jingxuan98 avatar

Watchers

 avatar

Forkers

michaelyohanes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.