ava-labs / avalanchego-kurtosis

Run AvalancheGo tests in the Kurtosis framework
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

AvalancheGo Kurtosis Example

This repository includes examples for spinning up a local Avalanche network using both Kurtosis and Docker Compose. Both examples utlize AvalancheGo, the official node implementation for the Avalanche network.

Kurtosis

Configuration that will run AvalancheGo tests using the Kurtosis framework

cd kurtosis
./scripts/build-and-run.sh all

It will:

Docker Compose

Configuration that will bootstrap a local Avalanche network using Docker Compose

cd docker-compose
docker-compose pull && docker-compose up
# start a node with
./build/avalanchego --network-id=local --bootstrap-ips=127.0.0.1:9671,127.0.0.1:9672,127.0.0.1:9673,127.0.0.1:9674,127.0.0.1:9675 --bootstrap-ids=NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg,NodeID-MFrZFVCXPv5iCn6M9K6XduxGTYp891xXZ,NodeID-NFBbbJ4qCmNaCzeW7sxErhvWqvEQMnYcN,NodeID-GWPcbFJZFfZreETSoWjPimr846mXEKCtu,NodeID-P7oB2McjBGgW2NXXWVYjV8JEDFoW9xDE5

It will:

localhost:9661 -> node1:9650
localhost:9662 -> node2:9650
localhost:9663 -> node3:9650
localhost:9664 -> node4:9650
localhost:9665 -> node5:9650
localhost:9671 -> node1:9651
localhost:9672 -> node2:9651
localhost:9673 -> node3:9651
localhost:9674 -> node4:9651
localhost:9675 -> node5:9651