Add ansible playbook to setup and run Nitro bridge #4
@ -13,11 +13,11 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Clone repositories required for nitro-stack
|
- name: Clone repositories required for nitro-stack
|
||||||
command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node setup-repositories --git-ssh --pull
|
command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge setup-repositories --git-ssh --pull
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Build containers
|
- name: Build containers
|
||||||
command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild
|
command: laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge build-containers --force-rebuild
|
||||||
when: not skip_container_build
|
when: not skip_container_build
|
||||||
|
|
||||||
- name: Copy over spec file for nitro contracts deployment
|
- name: Copy over spec file for nitro contracts deployment
|
||||||
@ -104,7 +104,7 @@
|
|||||||
path: "{{ nitro_directory }}/bridge-deployment/data/nitro_deployment/nitro-addresses.json"
|
path: "{{ nitro_directory }}/bridge-deployment/data/nitro_deployment/nitro-addresses.json"
|
||||||
state: present
|
state: present
|
||||||
timeout: 60
|
timeout: 60
|
||||||
|
|
||||||
- name: Print BRIDGE_ADDRESS
|
- name: Print BRIDGE_ADDRESS
|
||||||
shell: laconic-so deployment --dir bridge-deployment exec nitro-bridge "jq -r '.\"42069\"[0].contracts.Bridge.address' /app/deployment/nitro-addresses.json"
|
shell: laconic-so deployment --dir bridge-deployment exec nitro-bridge "jq -r '.\"42069\"[0].contracts.Bridge.address' /app/deployment/nitro-addresses.json"
|
||||||
args:
|
args:
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
stack: /home/{{ ansible_user }}/cerc/nitro-stack/stack-orchestrator/stacks/nitro-contracts
|
||||||
|
deploy-to: compose
|
||||||
|
config:
|
||||||
|
GETH_URL: {{ geth_url }}
|
||||||
|
GETH_CHAIN_ID: '{{ geth_chain_id }}'
|
||||||
|
GETH_DEPLOYER_PK: '{{ geth_deployer_pk }}'
|
||||||
|
TOKEN_NAME: LaconicNetworkToken
|
||||||
|
TOKEN_SYMBOL: LNT
|
||||||
|
INITIAL_TOKEN_SUPPLY: '129600'
|
||||||
|
network:
|
||||||
|
ports: {}
|
||||||
|
volumes:
|
||||||
|
nitro_deployment: ./data/nitro_deployment
|
Loading…
Reference in New Issue
Block a user