|
|
@ -43,7 +43,8 @@ IMAGE_origin="hub.swarmlab.io:5443/hybrid-nodevuejs:latest" |
|
|
|
bootstrap="sec_bootstrap" |
|
|
|
hostnames="auto_update_hosts" |
|
|
|
hostnames_get="get_hosts" |
|
|
|
NODENAME=${HYBRID_NETWORK}_master_1.${HYBRID_NETWORK}_${HYBRID_NETWORK} |
|
|
|
#NODENAME=${HYBRID_NETWORK}_masterservice_1.${HYBRID_NETWORK}_${HYBRID_NETWORK} |
|
|
|
NODENAME=${IMAGE_local}_masterservice_1.${IMAGE_local}_${HYBRID_NETWORK} |
|
|
|
NODENETWORK=${HYBRID_NETWORK} |
|
|
|
# shellcheck disable=SC1091 |
|
|
|
#. ./.env |
|
|
@ -380,12 +381,13 @@ SwarmLab.io" |
|
|
|
|
|
|
|
clear_all () |
|
|
|
{ |
|
|
|
$(docker stop $(docker ps -a | grep "_masterservice_" | awk '{print $1}')) || true |
|
|
|
$(docker stop $(docker ps -a | grep "_workerservice_" | awk '{print $1}')) || true |
|
|
|
$(docker stop $(docker ps -a | grep "${IMAGE_local}_masterservice_" | awk '{print $1}')) || true |
|
|
|
$(docker stop $(docker ps -a | grep "${IMAGE_local}_workerservice_" | awk '{print $1}')) || true |
|
|
|
|
|
|
|
#$(docker stop $(docker ps -a | grep "_registry_" | awk '{print $1}')) || true # remove for microservices |
|
|
|
#docker ps -a | grep "_registry_" | awk '{print $1}' | xargs docker container rm || true # remove for microservices |
|
|
|
docker ps -a | grep "_workerservice_" | awk '{print $1}' | xargs docker container rm || true |
|
|
|
docker ps -a | grep "_masterservice_" | awk '{print $1}' | xargs docker container rm || true |
|
|
|
docker ps -a | grep "${IMAGE_local}_workerservice_" | awk '{print $1}' | xargs docker container rm || true |
|
|
|
docker ps -a | grep "${IMAGE_local}_masterservice_" | awk '{print $1}' | xargs docker container rm || true |
|
|
|
} |
|
|
|
|
|
|
|
down_all () |
|
|
|