Browse Source

new build

master
zeus 3 years ago
parent
commit
b5f7f1097f
  1. 8
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -197,6 +197,11 @@ fi
create_project () create_project ()
{ {
docker pull $IMAGE_origin << ANSWERS
yes
yes
yes
ANSWERS
if [ "$Wdir" == "$HOME" ]; then if [ "$Wdir" == "$HOME" ]; then
echo"" echo""
echo "You are in Your Home directory" echo "You are in Your Home directory"
@ -477,7 +482,7 @@ build_and_push_image ()
echo "$ docker build -t \"$IMAGE_NAME\" ." echo "$ docker build -t \"$IMAGE_NAME\" ."
printf "\\n" printf "\\n"
#docker build -t "$REGISTRY_ADDR:$REGISTRY_PORT/$IMAGE_NAME" . #docker build -t "$REGISTRY_ADDR:$REGISTRY_PORT/$IMAGE_NAME" .
docker build -t "$IMAGE_NAME" . docker build --force-rm --pull -t "$IMAGE_NAME" .
} }
@ -491,7 +496,6 @@ up_master ()
printf "\\n" printf "\\n"
docker-compose rm -f -s -v docker-compose rm -f -s -v
docker-compose up --build --remove-orphans --force-recreate -d masterservice << ANSWERS docker-compose up --build --remove-orphans --force-recreate -d masterservice << ANSWERS
yes yes
yes yes

Loading…
Cancel
Save