How to run Althea testnet locally using Docker
This guide will show how to run a local testnet for Althea using Docker.
# Prerequisites
I’m starting with a clean Ubuntu install.
- Ubuntu 22.10
docker-ce
- Follow the instructions Things to do after installing Ubuntu > Docker to set it up.
- Make sure that you are using
docker-ce
instead ofDocker Desktop
. I wasn’t able to run it usingDocker Desktop
, and upon suggestion by Althea developer, usingdocker-ce
results in all tests succeeding.
# Install Wireguard
|
|
# Clone Repo
|
|
# Run bash script
Make sure that you’re in the althea_local
directory.
|
|
This will build a Docker image, using the althea_rs
repository, and configure all the different components needed to run Althea. In the end, it will run a Docker container and open the bash
shell, where all the required dependencies and environment variables have been set.
Whenever you want to launch into the development environment, you’ll have to execute the above script.
# Test
To test that everything is set up correctly, run the following integration test inside the container shell:
|
|
This command will execute the official integration tests of althea_rs
repository, testing the integration of different components. If all tests pass, you can be sure that everything is set up correctly.
# Environment Variables
Values of different environment variables can be changed in env.list
file.