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

Add config param for aries-vcr wallet type #738

Merged
merged 2 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ services:
- WALLET_ENCRYPTION_KEY=${WALLET_ENCRYPTION_KEY}
- INDY_WALLET_SEED=${INDY_WALLET_SEED}
# - INDY_WALLET_DID=${INDY_WALLET_DID}
- ACAPY_WALLET_TYPE=${ACAPY_WALLET_TYPE}
- WEBHOOK_URL=${WEBHOOK_URL}/agentcb
- HTTP_INTERFACE_PORT=${HTTP_INTERFACE_PORT}
- WS_INTERFACE_PORT=${WS_INTERFACE_PORT}
Expand All @@ -147,7 +148,7 @@ services:
aca-py provision \
--endpoint ${AGENT_ENDPOINT} \
--genesis-url '${LEDGER_URL}/genesis' \
--wallet-type 'indy' \
--wallet-type $ACAPY_WALLET_TYPE \
--wallet-name 'icat_agent_wallet' \
--wallet-key '${WALLET_ENCRYPTION_KEY}' \
--wallet-storage-type '${WALLET_TYPE}' \
Expand All @@ -173,7 +174,7 @@ services:
--auto-respond-credential-request \
--auto-verify-presentation \
--exch-use-unencrypted-tags \
--wallet-type 'indy' \
--wallet-type $ACAPY_WALLET_TYPE \
--wallet-name 'icat_agent_wallet' \
--wallet-key '${WALLET_ENCRYPTION_KEY}' \
--wallet-storage-type '${WALLET_TYPE}' \
Expand Down
5 changes: 3 additions & 2 deletions docker/manage
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ configureEnvironment() {

# wallet-db
export WALLET_TYPE="postgres_storage"
export ACAPY_WALLET_TYPE=${ACAPY_WALLET_TYPE:-indy}
export WALLET_ENCRYPTION_KEY="key"
export POSTGRESQL_WALLET_HOST="wallet-db"
export POSTGRESQL_WALLET_PORT="5432"
Expand Down Expand Up @@ -593,15 +594,15 @@ shift || COMMAND=usage

case "${COMMAND}" in
start|up)
_startupParams=$(getStartupParams --force-recreate $@)
_startupParams=$(getStartupParams $@)
configureEnvironment "$@"
docker-compose ${composeOptions} up --scale vcr-worker=2 -d ${_startupParams}
wait_for_vcr_api
logs
echo 'Want to see the scrolling container logs? Run "./manage logs"'
;;
scale|upscale)
_startupParams=$(getStartupParams --force-recreate $@)
_startupParams=$(getStartupParams $@)
configureEnvironment "$@"
echo "NOTE make sure you have previously run $@ start to initialize the agent and wallet!!!"
echo "NOTE make sure you have removed the port mapping in docker-compose.yml for vcr-api and vcr-agent!!!"
Expand Down