Update docker run commands for running subsequent validators
This commit is contained in:
parent
ff836a2be0
commit
42b1a8be23
@ -48,17 +48,31 @@
|
||||
when: private_key_input.user_input | default('') | trim == ''
|
||||
|
||||
- name: Run create-validator script
|
||||
shell: |
|
||||
docker run -i \
|
||||
-v {{create_validator_dir}}:/root/create-validator \
|
||||
-v ~/cerc/laconicd-stack/stack-orchestrator/config/mainnet-laconicd/create-validator.sh:/scripts/create-validator.sh \
|
||||
-e "KEY_NAME={{ key_name }}" \
|
||||
-e "NODE_URL={{ node_url }}" \
|
||||
-e "CERC_MONIKER={{ cerc_moniker }}" \
|
||||
-e "CERC_CHAIN_ID={{ cerc_chain_id }}" \
|
||||
-e "MIN_GAS_PRICE={{ min_gas_price }}" \
|
||||
-e "VALIDATOR_PUB_KEY={{ validator_pub_key | to_json }}" \
|
||||
-e "PVT_KEY={{ private_key_input.user_input }}" \
|
||||
--network=host \
|
||||
cerc/laconicd:local \
|
||||
sh -c "/scripts/create-validator.sh"
|
||||
command:
|
||||
argv:
|
||||
- docker
|
||||
- run
|
||||
- -i
|
||||
- -v
|
||||
- "{{create_validator_dir}}:/root/create-validator"
|
||||
- -v
|
||||
- "{{ ansible_env.HOME }}/cerc/laconicd-stack/stack-orchestrator/config/mainnet-laconicd/create-validator.sh:/scripts/create-validator.sh"
|
||||
- -e
|
||||
- "KEY_NAME={{ key_name }}"
|
||||
- -e
|
||||
- "NODE_URL={{ node_url }}"
|
||||
- -e
|
||||
- "CERC_MONIKER={{ cerc_moniker }}"
|
||||
- -e
|
||||
- "CERC_CHAIN_ID={{ cerc_chain_id }}"
|
||||
- -e
|
||||
- "MIN_GAS_PRICE={{ min_gas_price }}"
|
||||
- -e
|
||||
- "VALIDATOR_PUB_KEY={{ validator_pub_key }}"
|
||||
- -e
|
||||
- "PVT_KEY={{ private_key_input.user_input }}"
|
||||
- --network=host
|
||||
- cerc/laconicd:local
|
||||
- sh
|
||||
- -c
|
||||
- "/scripts/create-validator.sh"
|
||||
|
||||
@ -94,10 +94,20 @@
|
||||
|
||||
- name: Initialize laconicd node
|
||||
when: not BUILD_ONLY
|
||||
shell: |
|
||||
docker run -i \
|
||||
-v {{data_directory}}/{{ mainnet_deployment_dir }}/data/laconicd-data:/root/.laconicd \
|
||||
-v {{data_directory}}/{{ mainnet_deployment_dir }}/config/mainnet-laconicd:/scripts \
|
||||
-e "CERC_MONIKER={{ cerc_moniker }}" \
|
||||
-e "CERC_CHAIN_ID={{ cerc_chain_id }}" \
|
||||
cerc/laconicd:local bash -c "/scripts/setup-laconicd.sh"
|
||||
command:
|
||||
argv:
|
||||
- docker
|
||||
- run
|
||||
- -i
|
||||
- -v
|
||||
- "{{data_directory}}/{{ mainnet_deployment_dir }}/data/laconicd-data:/root/.laconicd"
|
||||
- -v
|
||||
- "{{data_directory}}/{{ mainnet_deployment_dir }}/config/mainnet-laconicd:/scripts"
|
||||
- -e
|
||||
- "CERC_MONIKER={{ cerc_moniker }}"
|
||||
- -e
|
||||
- "CERC_CHAIN_ID={{ cerc_chain_id }}"
|
||||
- cerc/laconicd:local
|
||||
- bash
|
||||
- -c
|
||||
- "/scripts/setup-laconicd.sh"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user