github.com/hyperledger/aries-framework-go@v0.3.2/scripts/run-openapi-demo.sh (about) 1 #!/bin/bash 2 # 3 # Copyright SecureKey Technologies Inc. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 set -e 8 9 DEMO_COMPOSE_OP="${DEMO_COMPOSE_OP:-up --force-recreate -d}" 10 COMPOSE_FILES="${DEMO_COMPOSE_FILES}" 11 DEMO_PATH="$PWD/${DEMO_COMPOSE_PATH}" 12 AGENT_PATH="${AGENT_REST_COMPOSE_PATH}" 13 AGENT_COMPOSE_FILE="$PWD/$AGENT_PATH" 14 SIDETREE_PATH="${SIDETREE_COMPOSE_PATH}" 15 SIDETREE_COMPOSE_FILE="$PWD/$SIDETREE_PATH" 16 17 set -o allexport 18 [[ -f $DEMO_PATH/.env ]] && source $DEMO_PATH/.env 19 set +o allexport 20 21 set -o allexport 22 [[ -f $AGENT_PATH/.env ]] && source $AGENT_PATH/.env 23 set +o allexport 24 25 set -o allexport 26 [[ -f $SIDETREE_PATH/.env ]] && source $SIDETREE_PATH/.env 27 set +o allexport 28 29 cd $AGENT_COMPOSE_FILE 30 docker-compose -f docker-compose.yml ${DEMO_COMPOSE_OP} 31 cd $SIDETREE_COMPOSE_FILE 32 docker-compose -f docker-compose.yml ${DEMO_COMPOSE_OP} 33 cd $DEMO_PATH 34 docker-compose -f docker-compose.yml ${DEMO_COMPOSE_OP}