diff --git a/admin-api/scripts-for-api/start-fabric.sh b/admin-api/scripts-for-api/start-fabric.sh index 5d5fca4..5af9dcd 100755 --- a/admin-api/scripts-for-api/start-fabric.sh +++ b/admin-api/scripts-for-api/start-fabric.sh @@ -43,6 +43,7 @@ function main { startRCA $HOME $REPO startICA $HOME $REPO startRegisterOrgs $HOME $REPO + sleep 30 startRegisterOrderers $HOME $REPO startRegisterPeers $HOME $REPO if [ $FABRIC_NETWORK_TYPE == "PROD" ]; then diff --git a/admin-api/test.sh b/admin-api/test.sh index 9552a83..587dbbd 100644 --- a/admin-api/test.sh +++ b/admin-api/test.sh @@ -85,8 +85,13 @@ response=$(curl -s -X POST http://${ENDPOINT}:${PORT}/fabric/start -H 'content-t echo $response ######################################################################################################################## -# Stop a new Fabric network. Stops everything started by /fabric/start. +# Stop a new Fabric network. Stops everything started by /fabric/start. Removes all data in /opt/share # Stop your CLI container before running this, otherwise it will prevent the PV/PVC being deleted. +# Make sure all pods and services are stopped, and the /opt/share directory is empty +# +# kubectl get po --all-namespaces +# kubectl get svc --all-namespaces +# ls -l /opt/share ######################################################################################################################## response=$(curl -s -X POST http://${ENDPOINT}:${PORT}/fabric/stop -H 'content-type: application/json') echo $response diff --git a/fabric-main/start-fabric.sh b/fabric-main/start-fabric.sh index ff12e24..2ec413b 100755 --- a/fabric-main/start-fabric.sh +++ b/fabric-main/start-fabric.sh @@ -38,6 +38,7 @@ function main { startRCA $HOME $REPO startICA $HOME $REPO startRegisterOrgs $HOME $REPO + sleep 30 startRegisterOrderers $HOME $REPO startRegisterPeers $HOME $REPO if [ $FABRIC_NETWORK_TYPE == "PROD" ]; then