This directory contains Docker configuration and scripts for building images of the validator node, faucet server and client.
- Download and install Docker.
- 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
- 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
- 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`
- 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>