Add ansible playbook to setup and run L2 deployment #3
@ -57,3 +57,21 @@ The following commands have to be executed in [`l2-setup`](./) directory
|
|||||||
```bash
|
```bash
|
||||||
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-optimism.yml --extra-vars='{"target_host" : "localhost", "existing_contracts_deployment": true}' -kK --user $USER
|
LANG=en_US.utf8 ansible-playbook -i localhost, --connection=local run-optimism.yml --extra-vars='{"target_host" : "localhost", "existing_contracts_deployment": true}' -kK --user $USER
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Check Deployment Status
|
||||||
|
|
||||||
|
- Run the following command in the directory where the optimism-deployment is created
|
||||||
|
|
||||||
|
- Follow optimism contracts deployment logs:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so deployment --dir optimism-deployment logs -f fixturenet-optimism-contracts
|
||||||
|
```
|
||||||
|
|
||||||
|
- Check L2 logs:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so deployment --dir optimism-deployment logs -f op-geth
|
||||||
|
|
||||||
|
# Ensure new blocks are getting created
|
||||||
|
```
|
||||||
|
@ -80,6 +80,11 @@
|
|||||||
src: "{{ artifact_path }}/l2_config/l2-jwt.txt"
|
src: "{{ artifact_path }}/l2_config/l2-jwt.txt"
|
||||||
dest: "{{ l2_directory }}/optimism-deployment/data/l2_config"
|
dest: "{{ l2_directory }}/optimism-deployment/data/l2_config"
|
||||||
|
|
||||||
|
- name: Copy l2 accounts file
|
||||||
|
copy:
|
||||||
|
src: "{{ artifact_path }}/l2_accounts/accounts.json"
|
||||||
|
dest: "{{ l2_directory }}/optimism-deployment/data/l2_accounts"
|
||||||
|
|
||||||
when: existing_contracts_deployment
|
when: existing_contracts_deployment
|
||||||
|
|
||||||
- name: Start L2-deployment
|
- name: Start L2-deployment
|
||||||
|
Loading…
Reference in New Issue
Block a user