add ageth wrapper for managing geth
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a98ea99095
commit
bf6c9b76f0
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- import_tasks: wrapper.yml
|
||||
- import_tasks: geth.yml
|
||||
- import_tasks: faucet.yml
|
||||
- import_tasks: proxy.yml
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Create geth attach wrapper
|
||||
template:
|
||||
src: geth-attach-wrapper.sh
|
||||
dest: /usr/local/bin/ageth
|
||||
mode: 0755
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
if [[ -z "$@" ]]; then
|
||||
docker exec -it {{ faucet_geth_name }} geth attach http://localhost:{{ faucet_geth_rpc_port }}
|
||||
else
|
||||
docker exec -it {{ faucet_geth_name }} geth attach http://localhost:{{ faucet_geth_rpc_port }} --exec "$@"
|
||||
fi
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- import_tasks: config.yml
|
||||
- import_tasks: wrapper.yml
|
||||
- import_tasks: container.yml
|
||||
- import_tasks: firewall.yml
|
||||
- import_tasks: consul.yml
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Create geth attach wrapper
|
||||
template:
|
||||
src: geth-attach-wrapper.sh
|
||||
dest: /usr/local/bin/ageth
|
||||
mode: 0755
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
if [[ -z "$@" ]]; then
|
||||
docker exec -it {{ miner_cont_name }} geth attach http://localhost:{{ miner_rpc_port }}
|
||||
else
|
||||
docker exec -it {{ miner_cont_name }} geth attach http://localhost:{{ miner_rpc_port }} --exec "$@"
|
||||
fi
|
Loading…
Reference in New Issue