Skip to content

Commit b10a103

Browse files
authored
Merge pull request #97 from hyperledger/95-node-controller
fixed env variable name. Fixes #95
2 parents 8897515 + 548e9fc commit b10a103

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

run/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ IMAGE=ghcr.io/hyperledger/indy-node-container/indy_node:latest-ubuntu18
99
# You likely want to keep these default values:
1010
SOCK=/var/run/docker.sock
1111
NODE_CONTAINER_NAME=indy_node
12+
CONTROLLER_CONTAINER=indy_node_controller
1213
IMAGE_NAME_CONTROLLER=ghcr.io/hyperledger/indy-node-container/indy_node_controller:latest
1314

1415
INDY_NODE_IP=0.0.0.0

run/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ The log dir is mounted to `./log_indy` by default to ease access to the log file
4343

4444
## Node Controller
4545

46-
Our current approach to handle pool restarts is to have the node controller running in a separate service container which has access to the docker socket (`SOCK=/var/run/docker.sock` in the `.env` file which might have to be adapted depending on your local docker setting). You can run the node without the node controller with e.g. `docker-compose up --scale indy-controller=0`. Note however that such nodes will not participate in pool restarts.
46+
Our current approach to handle pool restarts is to have the node controller running in a separate service container which has access to the docker socket. You can run the node without the node controller with e.g. `docker-compose up --scale indy-controller=0`. Note however that such nodes will not participate in pool restarts.
4747

48-
If the node controller container is running and has access to the docker socket of the host, the node will be restarted upon pool restart commands and will participate in a network upgrade. The decision mechanism for whether to accept or reject an upgrade based on avaiable deb package versions is part of indy node server and hence unchanged. However, if an upgrade is accepted, the container will be stopped, pulled, and restarted. Use a tag like `latest-ubuntu18` and make sure that a new `latest` image is avaiable bevor the network upgrade commences.
48+
If wou want to use the node controller, the variables `SOCK`, `NODE_CONTAINER_NAME`, `CONTROLLER_CONTAINER`, and `IMAGE_NAME_CONTROLLER` need to be set in the `.env` file. Appropriate default values are set in [the default file](/.env).
49+
50+
If the node controller container is running and has access to the docker socket of the host, the node will be restarted upon pool restart commands and will participate in a network upgrade. The decision mechanism for whether to accept or reject an upgrade based on available deb package versions is part of indy node server and hence unchanged. However, if an upgrade is accepted, the container will be stopped, pulled, and restarted. Use a tag like `latest-ubuntu18` and make sure that a new `latest` image is available before the network upgrade commences.
4951

5052

run/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ services:
2525
indy-controller:
2626
image: ${IMAGE_NAME_CONTROLLER}
2727
init: true
28-
container_name: indy_node_controller
28+
container_name: ${CONTROLLER_CONTAINER}
2929
environment:
30-
- CONTAINER=${NODE_CONTAINER_NAME}
30+
- NODE_CONTAINER=${NODE_CONTAINER_NAME}
3131
- INDY_NETWORK_NAME=${INDY_NETWORK_NAME}
32+
- CONTROLLER_CONTAINER=${CONTROLLER_CONTAINER}
3233
volumes:
3334
- ./etc_indy:/etc/indy
3435
- ${SOCK}:/var/run/docker.sock

0 commit comments

Comments
 (0)