Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update redis-pq-demo to use playground examples container #105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions redis-pq-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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/blob/main/demo/playground/README.md) 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 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 scripts
pip install -r requirements.txt
<edit the MEDIATOR_INVITATION_URL in mediator_ping_agents.py>
python ./mediator_ping_agents.py
```
<new terminal at aries-cloudagent-python/demo/playground>
cd examples
docker compose build
APP_NETWORK_NAME=redis_cluster docker compose run -e MEDIATOR_INVITATION_URL=<your mediator invitation url> tests -s
```