From 4e7e6904a360555fa7fe6fb68f578e341d769482 Mon Sep 17 00:00:00 2001 From: Jens Schedel Date: Wed, 11 Dec 2024 10:37:03 +0100 Subject: [PATCH 1/2] Adjust default log level to only log severity info and above Signed-off-by: Jens Schedel --- run/etc_indy/indy_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/etc_indy/indy_config.py b/run/etc_indy/indy_config.py index 24729a4..d7a8db6 100644 --- a/run/etc_indy/indy_config.py +++ b/run/etc_indy/indy_config.py @@ -24,7 +24,7 @@ ## Logging # 0 means everything -logLevel = 1 +logLevel = 20 # Enable/Disable stdout logging enableStdOutLogging = True From 3d574b8b04b08135a76b78672336a1b608b09e32 Mon Sep 17 00:00:00 2001 From: Jens Schedel Date: Wed, 11 Dec 2024 11:09:23 +0100 Subject: [PATCH 2/2] Transition from docker-compose to docker compose CI failed because docker-compose is no longer available there. Signed-off-by: Jens Schedel --- .github/workflows/build-all.yml | 4 ++-- run/README.md | 8 ++++---- test/README.md | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index bbaefab..a9f468c 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -137,7 +137,7 @@ jobs: - name: Setup test network configs run: cd test && ./init-test-network.sh indy_node:${{ matrix.os_version }} - name: Start test network - run: cd test && env SOCK=/var/run/docker.sock IMAGE_NAME_NODE=indy_node:${{ matrix.os_version }} IMAGE_NAME_CONTROLLER=indy_node_controller docker-compose up -d + run: cd test && env SOCK=/var/run/docker.sock IMAGE_NAME_NODE=indy_node:${{ matrix.os_version }} IMAGE_NAME_CONTROLLER=indy_node_controller docker compose up -d - name: Get Ledger State id: ledger run: | @@ -174,7 +174,7 @@ jobs: id: node-restart run: | echo "::set-output name=restart-time::$(date +%s)" - cd test && echo -e "indy-cli\npool create test gen_txn_file=/pool_transactions_genesis\npool connect test\nwallet create wallet key=1234\nwallet open wallet key=1234\ndid new seed=000000000000000000000000Trustee1\ndid use V4SGRU86Z58d6TV7PBUe6f\nledger pool-restart action=start" | docker-compose run indy-cli + cd test && echo -e "indy-cli\npool create test gen_txn_file=/pool_transactions_genesis\npool connect test\nwallet create wallet key=1234\nwallet open wallet key=1234\ndid new seed=000000000000000000000000Trustee1\ndid use V4SGRU86Z58d6TV7PBUe6f\nledger pool-restart action=start" | docker compose run indy-cli - name: Get node restart status id: nodes_restarted run: | diff --git a/run/README.md b/run/README.md index baf41f6..de7b51f 100644 --- a/run/README.md +++ b/run/README.md @@ -32,7 +32,7 @@ rm -rf lib_indy/ssi4de/ mkdir lib_indy/YOUR_NETWORK_NAME ``` -Run `docker-compose up --scale indy-controller=0`. This will run some setup and you will get some information which needs to share with the other nodes from the output like: +Run `docker compose up --scale indy-controller=0`. This will run some setup and you will get some information which needs to share with the other nodes from the output like: ``` ... @@ -69,7 +69,7 @@ Note down the created did and verkey and share it with your network peers for th ### Running the node ``` -indy-node-container/run$ docker-compose up -d +indy-node-container/run$ docker compose up -d ``` you might want to check logs, ledger info (see e.gg. https://github.com/IDunion/Internal-Information/tree/main/Tools/get-validator-info ), etc 😉 @@ -151,7 +151,7 @@ You can set logging options globally fot the Docker Daemon for all Containers in } ``` -### Via docker-compose +### Via docker compose See [docker-compose.yml](./docker-compose.yml): @@ -168,7 +168,7 @@ services: ## Node Controller -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. +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. 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). diff --git a/test/README.md b/test/README.md index cb31e17..352bba0 100644 --- a/test/README.md +++ b/test/README.md @@ -6,7 +6,7 @@ The docker network will use the subnet 10.133.133.0/24. You may change that acco 1. Check/Update `.env`, `docker-compose.yaml` and `init-test-network.sh` files - if you need to update the IP subnet, then the change must be made everywhere. 2. Run `init-test-network.sh` to create genesis and key files. -3. Run `docker-compose up` to start the network. +3. Run `docker compose up` to start the network. 4. Check the ledger browser at http://localhost:9000 . -5. Use `docker-compose down` to shutdown the network. +5. Use `docker compose down` to shutdown the network.