| .. | ||
| templates | ||
| README.md | ||
| reset-demo.yml | ||
| run-bridge-demo.yml | ||
| run-stacks.yml | ||
| setup-go-nitro.yml | ||
| setup-optimism.yml | ||
| stop-deployments.yml | ||
| vars.yml | ||
nitro-bridge-demo-setup
Setup Ansible
To get started, follow the installation guide to setup ansible on your machine
Nitro Bridge Demo
The following commands have to be executed in nitro-bridge-demo-setup directory
-
To set up the Nitro Bridge Demo, execute the
run-bridge-demo.ymlAnsible playbook by running the following command:NOTE: By default, deployments are created in the
nitro-bridge-demo-setup/outdirectory. To change this location, update thenitro_directoryvariable in the vars.yml file.LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost"}' --user $USER-
If you want to skip building the containers, set
"skip_container_build" : truein the--extra-varsparameter:LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-bridge-demo.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER
-
-
Follow steps from Demo to create mirror channels on L2, create virtual channel and make payments
Reset Demo
-
Run the following command to reset demo:
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local reset-demo.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER- Deployments are stopped
- Nitro nodes deployment data are removed
- Deployments are started again
-
Steps from Demo can be run again
Cleanup
-
To stop all deployments, run the
stop-deployments.ymlplaybook in thenitro-stack-demodirectory:LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost"}' -K --user $USER -
If you also want to remove the deployments, set
"remove_deployment_dir" : truein the--extra-varsparameter when running the playbook:LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local stop-deployments.yml --extra-vars='{"target_host" : "localhost", "remove_deployment_dir" : true}' -K --user $USER