cs-codex-dist-tests/Tools/CodexNetDeployer
benbierens c653afa554
trying with script
2023-10-07 07:53:10 +02:00
..
CodexNetDeployer.csproj Restores CodexNetDeployer 2023-09-20 12:02:32 +02:00
CodexNodeStarter.cs Console output alignment is important. 2023-09-21 08:49:09 +02:00
Configuration.cs trying with script 2023-10-07 07:53:10 +02:00
Deployer.cs bumps timeout because cluster might need to start more nodes 2023-10-05 08:58:05 +02:00
K8sHook.cs Restores pod labels in deployer. Adds metrics assert for twoclient continuous test. 2023-09-26 14:32:28 +02:00
PeerConnectivityChecker.cs Restores continuous test runner. 2023-09-21 10:33:09 +02:00
Program.cs trying with script 2023-10-07 07:53:10 +02:00
README.MD Adds dockertag description 2023-09-29 10:40:48 +02:00
deploy-continuous-testnet.sh makes output deployment json configurable. 2023-10-05 08:46:59 +02:00

README.MD

CodexNetDeployer

This CLI tool allows you to create a network of Codex nodes in a kubernetes cluster. There are many arguments that allow you to configure every aspect of the deployment. Each argument can also be controlled using an environment variable. I won't copy-paste the list here because then it'll have to be kept up-to-date. Just run: dotnet run -- --help

Output

After the deployment has successfully finished, a codex-deployment.json file will be created. This file contains all the information necessary to interface with the deployed network. It can be used by other tools, for example the CodexContinuousTests runner CLI tool.

Overrides

The arguments allow you to configure quite a bit, but not everything. Here are some environment variables the CodexNetDeployer will respond to. None of these are required.

Variable Description
RUNID A pod-label 'runid' is added to each pod created during deployment. Use this to set the value of that label.
TESTID Similar to RUNID, except the label is 'testid'.
CODEXDOCKERIMAGE If set, this will be used instead of the default Codex docker image.

Using a local Codex repository

If you have a clone of the Codex git repository, and you want to deploy a network using your local modifications, the following environment variable options are for you. Please note that any changes made in Codex's 'vendor' directory will be discarded during the build process.

Variable Description
CODEXREPOPATH Path to the Codex repository.
DOCKERUSERNAME Username of your Dockerhub account.
DOCKERPASSWORD Password OR access-token for your Dockerhub account. You can omit this variable to use your system-default account.
DOCKERTAG Optional. Tag used for docker image that will be built and pushed to the Dockerhub account. Random ID used when not set.