diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c9ddd1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nitro-nodes-setup/out/ diff --git a/README.md b/README.md index bcd5fb0..3e13766 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ - Add location of the directory containing the ansible binary to your `PATH` -- Optional: Set Locale Encoding to `UTF-8` +- Set Locale Encoding to `UTF-8` Ansible requires the locale encoding to be `UTF-8`. You can either use the `LANG` prefix when running Ansible commands or set the system-wide locale. diff --git a/nitro-nodes-setup/README.md b/nitro-nodes-setup/README.md index bcc0f97..d1094f5 100644 --- a/nitro-nodes-setup/README.md +++ b/nitro-nodes-setup/README.md @@ -50,18 +50,34 @@ The following commands have to be executed in [`nitro-nodes-setup`](./) director nitro_node_multiaddr: "" ``` -- To run a nitro node, execute the `run-nitro-node.yml` Ansible playbook by running the following command. +- To run a nitro node, execute the `run-nitro-nodes.yml` Ansible playbook by running the following command. NOTE: By default, deployments are created in the `nitro-nodes-setup/out` directory. To change this location, update the `nitro_directory` variable in the [setup-vars.yml](./setup-vars.yml) file. ```bash - LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-nitro-node.yml --extra-vars='{ "target_host": "localhost"}' --user $USER + LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-nitro-nodes.yml --extra-vars='{ "target_host": "localhost"}' --user $USER ``` - For skipping container build, run with `"skip_container_build" : true` in the `--extra-vars` parameter: ```bash - LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-nitro-node.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER + LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-nitro-nodes.yml --extra-vars='{ "target_host": "localhost", "skip_container_build": true }' --user $USER ``` -- Follow steps from [Demo](https://git.vdb.to/cerc-io/nitro-stack/src/branch/main/nitro-bridge-demo.md#demo) to create mirror channels on L2, create virtual channel and make payments +## Check Deployment Status + + - Run the following command in the directory where the deployments are created + + - Check L1 nitro node logs: + + ```bash + laconic-so deployment --dir l1-nitro-deployment logs nitro-node -f + ``` + + - Check L2 nitro node logs: + + ```bash + laconic-so deployment --dir l2-nitro-deployment logs nitro-node -f + ``` + +Follow steps from [Demo](https://git.vdb.to/cerc-io/nitro-stack/src/branch/main/nitro-bridge-demo.md#demo) to create mirror channels on L2, create virtual channel and make payments diff --git a/nitro-nodes-setup/run-nitro-node.yml b/nitro-nodes-setup/run-nitro-nodes.yml similarity index 99% rename from nitro-nodes-setup/run-nitro-node.yml rename to nitro-nodes-setup/run-nitro-nodes.yml index bfaaa83..77245d3 100644 --- a/nitro-nodes-setup/run-nitro-node.yml +++ b/nitro-nodes-setup/run-nitro-nodes.yml @@ -1,4 +1,4 @@ -- name: Setup and run a nitro node +- name: Setup and run nitro nodes hosts: "{{ target_host }}" vars_files: