-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in release/0.1.0 (pull request #42)
Fabkit v0.1.0 Release Approved-by: George Paulose
- Loading branch information
Showing
9 changed files
with
78 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
start_explorer() { | ||
loginfo "Starting explorer" | ||
echo | ||
|
||
(stop_explorer) & | ||
__spinner | ||
loginfoln "Starting explorer" | ||
|
||
if ! docker ps | grep -q "fabric"; then | ||
logerr "No Fabric networks running. First launch fabkit start" | ||
|
@@ -17,12 +13,15 @@ start_explorer() { | |
exit 1 | ||
fi | ||
|
||
__clear_logdebu | ||
(stop_explorer) & | ||
__spinner | ||
|
||
# replacing private key path in connection profile | ||
config="${FABKIT_EXPLORER_PATH}/connection-profile/first-network" | ||
admin_key_path="peerOrganizations/org1.example.com/users/[email protected]/msp/keystore" | ||
private_key="/tmp/crypto/${admin_key_path}/$(ls ${FABKIT_CRYPTOS_PATH}/${admin_key_path})" | ||
if (__jq <"${config}.base.json" -r --arg private_key "$private_key" '.organizations.Org1MSP.adminPrivateKey.path = $private_key' | | ||
__jq -r --argjson FABKIT_TLS_ENABLED "$FABKIT_TLS_ENABLED" '.client.tlsEnable = $FABKIT_TLS_ENABLED' >"${config}.json") 2>&1 >/dev/null | grep -iE "erro|pani|fail|fatal" > >(__throw >&2); then | ||
if (cat "${config}.base.json" | __run "$FABKIT_ROOT" jq -r "'.organizations.Org1MSP.adminPrivateKey.path = \"$private_key\" | .client.tlsEnable = $FABKIT_TLS_ENABLED'" >"${config}.json") 2>&1 >/dev/null | grep -iE "erro|pani|fail|fatal" > >(__throw >&2); then | ||
logerr "Error in replacing private key in explorer configuration" | ||
exit 1 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters