Browse Source

pull

master
zeus 3 years ago
parent
commit
8713ea91be
  1. 14
      install/usr/share/swarmlab.io/sec/swarmlab-sec

14
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -116,6 +116,12 @@ fi
create_dockerfile () create_dockerfile ()
{ {
docker pull $IMAGE_origin << ANSWERS
yes
yes
yes
ANSWERS
. $Wdir/ROOT_PASSWORD . $Wdir/ROOT_PASSWORD
if [ -d "$Wdir/project" ]; then if [ -d "$Wdir/project" ]; then
# ----------------------------------------------- # -----------------------------------------------
@ -420,6 +426,7 @@ clear_all ()
#docker ps -a | grep "_registry_" | awk '{print $1}' | xargs docker container rm || true # remove for microservices #docker ps -a | grep "_registry_" | awk '{print $1}' | xargs docker container rm || true # remove for microservices
docker ps -a | grep "${IMAGE_local}_workerservice_" | 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 docker ps -a | grep "${IMAGE_local}_masterservice_" | awk '{print $1}' | xargs docker container rm || true
docker rmi $IMAGE_local -f
} }
down_all () down_all ()
@ -484,13 +491,6 @@ up_master ()
printf "\\n" printf "\\n"
docker-compose rm -f -s -v docker-compose rm -f -s -v
docker rmi $IMAGE_local -f
clear_all
docker pull $IMAGE_origin << ANSWERS
yes
yes
yes
ANSWERS
docker-compose up --build --remove-orphans --force-recreate -d masterservice << ANSWERS docker-compose up --build --remove-orphans --force-recreate -d masterservice << ANSWERS
yes yes

Loading…
Cancel
Save