nomos-node/testnet
Youngjoon Lee c84a29db31
Use public keys for the mock mix message encoding (#905)
* add node IDs in message

* integrate

* handle variable-lenght messages in nomos-mix-network

* add trait MixMessage

* make tests work

* clippy happy

* remove println!

* remove unnecssary dependency

* remove unnecessary trait bounds

* remove leftover
2024-11-06 10:49:38 +09:00
..
cfgsync Use public keys for the mock mix message encoding (#905) 2024-11-06 10:49:38 +09:00
monitoring Tests: Local debugging setup using grafana (#855) 2024-10-25 13:39:07 +03:00
scripts Cli: Deserialization and runtime fixes (#854) 2024-10-25 14:56:37 +03:00
Dockerfile Executor in testnet (#839) 2024-10-22 12:36:06 +03:00
README.md Testnet: Kzgrs config (#797) 2024-10-02 14:26:39 +03:00
cfgsync.yaml Nomos tracing crate (#849) 2024-10-24 19:33:04 +03:00

README.md

Docker Compose Testnet for Nomos

The Nomos Docker Compose Testnet contains four distinct service types:

  • Nomos Node Services: Multiple dynamically spawned Nomos nodes that synchronizes their configuration via cfgsync utility.

Building

Upon making modifications to the codebase or the Dockerfile, the Nomos images must be rebuilt:

docker compose build

Configuring

Configuration of the Docker testnet is accomplished using the .env file. An example configuration can be found in .env.example.

To adjust the count of Nomos nodes, modify the variable:

DOCKER_COMPOSE_LIBP2P_REPLICAS=100

Running

Initiate the testnet by executing the following command:

docker compose up

This command will merge all output logs and display them in Stdout. For a more refined output, it's recommended to first run:

docker compose up -d

Followed by:

docker compose logs -f nomos-node

Using testnet

Bootstrap node is accessible from the host via 3000 and 18080 ports. To expose other nomos nodes, please update nomos-node service in the compose.yml file with this configuration:

  nomos-node-0:
    ports:
    - "3001-3010:3000" # Use range depending on the number of nomos node replicas.
    - "18081-18190:18080"

After running docker compose up, the randomly assigned ports can be viewed with ps command:

docker compose ps