Provides a REST API to:
- submit docker swarm compatabile compose files and deploy them on a swarm.
- Run Fault tolerance tests on deployed stacks
- Remove swarm stacks again
-
already setup docker swarm
-
ssh access to all swarm nodes from the node this application runs on
-
the application has to run on the leader swarm node since it uses docker cli to select containers to inject fault into and their hosts
-
install and run node processs once with pm2
-
run the App with the node installation that is output in the action after node installation. For example:
pm2 start --name=NodeApp index.js --interpreter=/home/ubuntu/actions-runner/_work/_tool/node/18.1.0/x64/bin/node
-
Install Pumba on all swarm nodes:
sudo curl -L https://github.com/alexei-led/pumba/releases/download/0.9.0/pumba_linux_amd64 -o /usr/bin/pumba
sudo chmod +x /usr/bin/pumba