Skip to content

Latest commit

 

History

History
48 lines (44 loc) · 1.42 KB

Node.md

File metadata and controls

48 lines (44 loc) · 1.42 KB

Start a node

Base on the doc from official https://developer.algorand.org/docs/introduction-installing-node (testnet currently available)

Installing on Docker

  1. Pull latest code
    git clone --branch rel/stable https://github.com/algorand/go-algorand.git
  2. Build docker image
    cd docker/releases
    docker build -f Dockerfile-testnet . -t algorand/testnet-telem:latest
  3. Create a Docker container
    • prepare configuration file
    docker run -it -v <root-path>:/root/node/tmp algorand/testnet-telem:latest
    node > cp -rf data tmp
    node > exit
    • copy configuration file cp <root-path>/data/config.json.example <root-path>/data/config.json from example and edit vi <root-path>/data/config.json,
      ...
      "Archival": true,
      ...
      "DNSBootstrapID": "testnet.algorand.network",
      ...
      "EndpointAddress": "0.0.0.0:8080",
      ...
      "IsIndexerActive": true,
      
    • start a container
    docker run -it -d -v <root-path>/data:/root/node/data -p 8080:8080 --name algorand algorand/testnet-telem:latest
  4. Sync Node with Network
    • run goal
      docker exec -it algorand /root/node/goal node start -d /root/node/data
    • print the rpc token
      docker exec -it algorand cat /root/node/data/algod.token