Open vpavlin opened 1 year ago
This PR defines a manifest which can be used to generate a full Docker Compose manifest with some environment preparation (volume dirs creation per service, prometheus config generation etc.).
manifest
Example manifest can be seen in default.yaml The struct is defined in types.go
You can build the CLI by running
make build
The resulting binary is ./bin/wakusim
./bin/wakusim
Running:
./bin/wakusim gen
will produce a directors default/ with all the necessary files. You can enter the directory then and run compose
default/
cd default/ docker compose up
You can have multiple simulation files - e.g. very_large_simulation.yaml and execute the generationy by running
very_large_simulation.yaml
./bin/wakusim gen -s very_large_simulation
which will generate all the artifacts in ./very_large_simulation/, where you can run compose up then.
./very_large_simulation/
compose up
TODOs:
launch
docker compose up
clean
This PR defines a
manifest
which can be used to generate a full Docker Compose manifest with some environment preparation (volume dirs creation per service, prometheus config generation etc.).Example manifest can be seen in default.yaml The struct is defined in types.go
You can build the CLI by running
The resulting binary is
./bin/wakusim
Running:
will produce a directors
default/
with all the necessary files. You can enter the directory then and run composeYou can have multiple simulation files - e.g.
very_large_simulation.yaml
and execute the generationy by runningwhich will generate all the artifacts in
./very_large_simulation/
, where you can runcompose up
then.TODOs:
launch
sub command to executedocker compose up
clean
sub command to clean up the simulation dir