Add healthcheck in nitro-rpc-client container
This commit is contained in:
parent
b3e58e8d74
commit
bd85c699c8
@ -531,7 +531,7 @@
|
|||||||
- Open new terminal, check that no channels exist on L2
|
- Open new terminal, check that no channels exist on L2
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4006 -h nitro-bridge"
|
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4005 -h nitro-bridge"
|
||||||
|
|
||||||
# Expected output:
|
# Expected output:
|
||||||
# []
|
# []
|
||||||
@ -636,7 +636,7 @@
|
|||||||
- Check status of all L2 mirrored ledger channels
|
- Check status of all L2 mirrored ledger channels
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4006 -h nitro-bridge"
|
laconic-so deployment --dir bridge-deployment exec nitro-rpc-client "nitro-rpc-client get-all-l2-channels -p 4005 -h nitro-bridge"
|
||||||
|
|
||||||
# Expected output:
|
# Expected output:
|
||||||
# [
|
# [
|
||||||
|
@ -37,7 +37,7 @@ services:
|
|||||||
NITRO_SC_PK: ${NITRO_SC_PK}
|
NITRO_SC_PK: ${NITRO_SC_PK}
|
||||||
NITRO_L1_MSG_PORT: ${NITRO_L1_MSG_PORT:-3005}
|
NITRO_L1_MSG_PORT: ${NITRO_L1_MSG_PORT:-3005}
|
||||||
NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006}
|
NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006}
|
||||||
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4006}
|
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4005}
|
||||||
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
|
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
|
||||||
NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR}
|
NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR}
|
||||||
NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR}
|
NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR}
|
||||||
@ -56,7 +56,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 3005
|
- 3005
|
||||||
- 3006
|
- 3006
|
||||||
- 4006
|
- 4005
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "localhost", "3006"]
|
test: ["CMD", "nc", "-vz", "localhost", "3006"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
@ -8,6 +8,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
NODE_EXTRA_CA_CERTS: "/app/mkcert-caroot/rootCA.pem"
|
NODE_EXTRA_CA_CERTS: "/app/mkcert-caroot/rootCA.pem"
|
||||||
command: ["bash", "-c", "tail -f /dev/null"]
|
command: ["bash", "-c", "tail -f /dev/null"]
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "nitro-rpc-client --version -p 4005"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 10s
|
||||||
volumes:
|
volumes:
|
||||||
- nitro_node_caroot:/app/mkcert-caroot
|
- nitro_node_caroot:/app/mkcert-caroot
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
go-nitro:
|
go-nitro:
|
||||||
- 3005:3005
|
- 3005:3005
|
||||||
- 3006:3006
|
- 3006:3006
|
||||||
- 4006:4006
|
- 4005:4005
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create deployment
|
- Create deployment
|
||||||
@ -72,7 +72,7 @@
|
|||||||
NITRO_L2_MSG_PORT=3006
|
NITRO_L2_MSG_PORT=3006
|
||||||
|
|
||||||
# Port to be used by RPC server
|
# Port to be used by RPC server
|
||||||
NITRO_RPC_PORT=4006
|
NITRO_RPC_PORT=4005
|
||||||
|
|
||||||
NITRO_PUBLIC_P2P_HOST=127.0.0.1
|
NITRO_PUBLIC_P2P_HOST=127.0.0.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user