The scripts in this repository provide a convenient wrapper around these commands for the testnet use case
where there can be some level of coordination and common ownership between the nodes.
## Machine setup
The scripts assume a set of machines with dns host names assigned with the pattern <machine-name-prefix>-<node-number>.<machine-domain>, e.g.
testnet-a-1.testnets.servesthe.world
Testnet machines must be setup with stack orchestrator and docker installed.
The local machine (where the scripts are run) needs to be configured with `ssh-agent` and the relevant key added, such that ssh commands to connect to the testnet machines succeed without user interaction.
## Testnet deployment steps
```
$ cd scripts
```
In the example commands below we assume the machine-name-prefix "testnet-a".
### network.cfg
The scripts load a set of configuration variables from a file named `network.cfg`. An example file is provided, edit to suit:
```
$ cat network.cfg
machine_domain=testnets.servesthe.world
node_count=4
ssh_user=laconic
```
### Pull stack images
Run the 00-pull-stack-images.sh script to pull stack container images from a container registry: