mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Improve on the initial PR to expand on the README with detailed information on how to run the external chaincode in a container on the test network and use the node application against it. Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
22 lines
516 B
Bash
Executable file
22 lines
516 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
BLD="$1"
|
|
RELEASE="$2"
|
|
|
|
if [ -d "$BLD/metadata" ]; then
|
|
cp -a "$BLD/metadata/"* "$RELEASE/"
|
|
fi
|
|
|
|
#external chaincodes expect artifacts to be placed under "$RELEASE"/chaincode/server
|
|
if [ -f $BLD/connection.json ]; then
|
|
mkdir -p "$RELEASE"/chaincode/server
|
|
cp $BLD/connection.json "$RELEASE"/chaincode/server
|
|
|
|
#if tls_required is true, copy TLS files (using above example, the fully qualified path for these fils would be "$RELEASE"/chaincode/server/tls)
|
|
|
|
exit 0
|
|
fi
|
|
|
|
exit 1
|