Skip to content

Commit

Permalink
added code to stop K8s services
Browse files Browse the repository at this point in the history
  • Loading branch information
MCLDG committed Mar 22, 2019
1 parent 03e4028 commit 6b7e41c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin-api/scripts-for-api/start-fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion admin-api/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions fabric-main/start-fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b7e41c

Please sign in to comment.