Skip to content

Latest commit

 

History

History

docker

Docker

This directory contains Docker configuration and scripts for building images of the validator node, faucet server and client.

Building Docker images

  1. Download and install Docker.
  2. Build the docker containers:
  • Dynamic validator: From the top level directory, run docker/validator-dynamic/build.sh
  • Mint (Faucet): From the top level directory, run docker/mint/build.sh
  1. To test locally, run the docker containers:
  • Dynamic validator: run docker/validator-dynamic/run.sh Note: the Base validator can be run locally but requires substantial manual configuration.
  • Mint (Faucet): run docker/mint/run.sh
  1. Retrieve the waypoint.txt from the mint container
  • Retrieve the docker container id CONTAINER_ID=`docker ps | grep mint | awk '{print $1}'`
  • Retrieve the waypoint WAYPOINT=`docker exec $CONTAINER_ID cat /opt/libra/etc/waypoint.txt`
  1. Run the client as follows: cargo run -p cli --bin cli -- -u http://localhost:8080 -f localhost:9080 --waypoint $WAYPOINT --chain-id <chain id of the network>