Skip to content

Commit

Permalink
fixup! Enhance test network sample
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Brandenburger <[email protected]>
  • Loading branch information
mbrandenburger committed Jul 25, 2024
1 parent 84ff336 commit 4dca343
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions samples/deployment/test-network/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ if [[ -z "${FPC_PATH}" ]]; then
exit 1
fi

backup() {
FILE=$1
BACKUP="${FILE}.backup"
echo "backup ${FILE} ..."
if [[ -e "${BACKUP}" ]]; then
cp "${BACKUP}" "${FILE}"
else
cp "${FILE}" "${BACKUP}"
fi
}

##############################################################################################
# Get the fabric samples repo and fetch binaries and container images
Expand Down Expand Up @@ -112,9 +102,9 @@ wget -O "${BE_CONNECTIONS_PROFILE}" https://raw.githubusercontent.com/hyperledge
wget -O "${BE_DOCKER_COMPOSE}" https://raw.githubusercontent.com/hyperledger/blockchain-explorer/main/docker-compose.yaml

cat > "${BE_PATH}/.env" << EOF
EXPLORER_CONFIG_FILE_PATH=${BE_PATH}/config.json
EXPLORER_PROFILE_DIR_PATH=${BE_PATH}/connection-profile
FABRIC_CRYPTO_PATH=${TEST_NETWORK_HOST}/organizations
EXPLORER_CONFIG_FILE_PATH=${BE_PATH_HOST}/config.json
EXPLORER_PROFILE_DIR_PATH=${BE_PATH_HOST}/connection-profile
FABRIC_CRYPTO_PATH=${DOCKERD_TEST_NETWORK_HOST}/organizations
EOF


Expand Down

0 comments on commit 4dca343

Please sign in to comment.