From ae0cf05a69279ecb9bf66d4b26661161421c123f Mon Sep 17 00:00:00 2001 From: Jason Sherman Date: Wed, 25 Oct 2023 11:14:18 -0700 Subject: [PATCH 1/3] Update redis-pq-demo to use playground examples container Signed-off-by: Jason Sherman --- redis-pq-demo/README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/redis-pq-demo/README.md b/redis-pq-demo/README.md index 8703da9..8f6fcf7 100644 --- a/redis-pq-demo/README.md +++ b/redis-pq-demo/README.md @@ -7,9 +7,9 @@ How to see a full fledged demo, and a set of agents using the mediator (with red To run a redis-cluster and acapy as a mediator with redis for the first time. use the following commands ``` -git clone https://github.com/hyperledger/aries-mediator-service.git z -cd redis-pq-demo -cp .\.env.sample .\.env +git clone https://github.com/hyperledger/aries-mediator-service.git +cd aries-mediator-service/redis-pq-demo +cp .env.sample .env docker-compose -f docker-compose.redis.yml up -d docker-compose up --build ``` @@ -18,20 +18,20 @@ After establishing a connection with the mediator. You can inspect the contents ## Example agents -If you want to run a set of agents using the mediator, consider the acapy playground demo. +If you want to run a set of agents using the mediator, consider the acapy [playground](https://github.com/hyperledger/aries-cloudagent-python/tree/f7db243430285edeb721f079ff0694bb76f41a3e/demo/playground) demo. ``` git clone https://github.com/hyperledger/aries-cloudagent-python.git cd aries-cloudagent-python/demo/playground cp .env.sample .env -APP_NETWORK_NAME=redis-cluster docker-compose up +APP_NETWORK_NAME=redis_cluster APP_NETWORK_EXTERNAL=true docker-compose up --build ``` -There is a python script provided that will connect all the playground's agents using the provided invitation. Retrieve the invitiation url from the start-up logs of the mediator, and use that for MEDIATOR_INVITATION_URL in the following commands. +Along with the playground, there are [examples/tests](https://github.com/hyperledger/aries-cloudagent-python/tree/f7db243430285edeb721f079ff0694bb76f41a3e/demo/playground/examples) that illustrate connecting agents through the mediator and pinging each other. Retrieve the invitiation url from the start-up logs of the mediator, and use that for MEDIATOR_INVITATION_URL in the following commands. ``` -cd scripts -pip install -r requirements.txt - -python ./mediator_ping_agents.py -``` \ No newline at end of file + +cd examples +docker compose build +APP_NETWORK_NAME=redis_cluster docker compose run -e MEDIATOR_INVITATION_URL=https://cd55-207-6-152-178.ngrok.io?c_i=eyJAdHlwZSI6ICJodHRwczovL2RpZGNvbW0ub3JnL2Nvbm5lY3Rpb25zLzEuMC9pbnZpdGF0aW9uIiwgIkBpZCI6ICI4ODI4ZDU4Ni0wMDYzLTRkZDktOTQxNy0wNzJhMGE4NDU0MjIiLCAic2VydmljZUVuZHBvaW50IjogImh0dHBzOi8vY2Q1NS0yMDctNi0xNTItMTc4Lm5ncm9rLmlvIiwgInJlY2lwaWVudEtleXMiOiBbIkYxdThXc1JkN2V5VEx6YTFzdEpubmpzeFl3eEwxTW1kWmVMdGdQUEppSmdhIl0sICJsYWJlbCI6ICJNZWRpYXRvciJ9 tests -s +``` From 19e8c1fccb98f4711aa18c6066fe7f759ca4d136 Mon Sep 17 00:00:00 2001 From: Jason Sherman Date: Wed, 25 Oct 2023 11:48:33 -0700 Subject: [PATCH 2/3] use permalinks for playground remove explicit example of mediator invitation url Signed-off-by: Jason Sherman --- redis-pq-demo/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redis-pq-demo/README.md b/redis-pq-demo/README.md index 8f6fcf7..e9edd25 100644 --- a/redis-pq-demo/README.md +++ b/redis-pq-demo/README.md @@ -18,7 +18,7 @@ After establishing a connection with the mediator. You can inspect the contents ## Example agents -If you want to run a set of agents using the mediator, consider the acapy [playground](https://github.com/hyperledger/aries-cloudagent-python/tree/f7db243430285edeb721f079ff0694bb76f41a3e/demo/playground) demo. +If you want to run a set of agents using the mediator, consider the acapy [playground](https://github.com/hyperledger/aries-cloudagent-python/blob/8311adca7f69e6003b98af2d033b4e441611ecf5/demo/playground/README.md) demo. ``` git clone https://github.com/hyperledger/aries-cloudagent-python.git @@ -27,11 +27,11 @@ cp .env.sample .env APP_NETWORK_NAME=redis_cluster APP_NETWORK_EXTERNAL=true docker-compose up --build ``` -Along with the playground, there are [examples/tests](https://github.com/hyperledger/aries-cloudagent-python/tree/f7db243430285edeb721f079ff0694bb76f41a3e/demo/playground/examples) that illustrate connecting agents through the mediator and pinging each other. Retrieve the invitiation url from the start-up logs of the mediator, and use that for MEDIATOR_INVITATION_URL in the following commands. +Along with the playground, there are examples that illustrate connecting the playground agents through the mediator and pinging each other. Retrieve the invitiation url from the start-up logs of the mediator, and use that for MEDIATOR_INVITATION_URL in the following commands. ``` cd examples docker compose build -APP_NETWORK_NAME=redis_cluster docker compose run -e MEDIATOR_INVITATION_URL=https://cd55-207-6-152-178.ngrok.io?c_i=eyJAdHlwZSI6ICJodHRwczovL2RpZGNvbW0ub3JnL2Nvbm5lY3Rpb25zLzEuMC9pbnZpdGF0aW9uIiwgIkBpZCI6ICI4ODI4ZDU4Ni0wMDYzLTRkZDktOTQxNy0wNzJhMGE4NDU0MjIiLCAic2VydmljZUVuZHBvaW50IjogImh0dHBzOi8vY2Q1NS0yMDctNi0xNTItMTc4Lm5ncm9rLmlvIiwgInJlY2lwaWVudEtleXMiOiBbIkYxdThXc1JkN2V5VEx6YTFzdEpubmpzeFl3eEwxTW1kWmVMdGdQUEppSmdhIl0sICJsYWJlbCI6ICJNZWRpYXRvciJ9 tests -s +APP_NETWORK_NAME=redis_cluster docker compose run -e MEDIATOR_INVITATION_URL= tests -s ``` From ba0d11a125d9fd1a0ef4ad74983e7c19586f62fb Mon Sep 17 00:00:00 2001 From: Jason Sherman Date: Thu, 26 Oct 2023 17:16:29 -0700 Subject: [PATCH 3/3] just use main for the link to aca-py... Signed-off-by: Jason Sherman --- redis-pq-demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis-pq-demo/README.md b/redis-pq-demo/README.md index e9edd25..58242cd 100644 --- a/redis-pq-demo/README.md +++ b/redis-pq-demo/README.md @@ -18,7 +18,7 @@ After establishing a connection with the mediator. You can inspect the contents ## Example agents -If you want to run a set of agents using the mediator, consider the acapy [playground](https://github.com/hyperledger/aries-cloudagent-python/blob/8311adca7f69e6003b98af2d033b4e441611ecf5/demo/playground/README.md) demo. +If you want to run a set of agents using the mediator, consider the acapy [playground](https://github.com/hyperledger/aries-cloudagent-python/blob/main/demo/playground/README.md) demo. ``` git clone https://github.com/hyperledger/aries-cloudagent-python.git