aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2018-08-21 07:50:12 +0800
committerseshukm <seshu.kumar.m@huawei.com>2018-08-21 07:54:06 +0800
commit318c9f7b12376b3814570487dd3d21b5344e80d8 (patch)
tree192d77bfc4a653bb240abf636a12cf75e042071c
parent14149bb6b189044d3dae9ae40ab665b43b8619f6 (diff)
Fix detach mode up and introduce down.
Issue-ID: SO-867 Change-Id: Ib52ca289c8d010347c6d6bc3ab043f1a1dc8d2ab Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
-rwxr-xr-xdeploy.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index aec1792..8e8bb66 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Deployment script for MSO lab
+# Deployment script for SO lab
# ===================================================
# Available parameters :
#
@@ -149,6 +149,9 @@ fi
#$DOCKER_COMPOSE_CMD stop
#$DOCKER_COMPOSE_CMD rm -f -v
+#brought in the down to stop and remove the images created by up
+$DOCKER_COMPOSE_CMD down
+
# deploy
#Running docker-compose up -d starts the containers in the background and leaves them running.
#If there are existing containers for a service, and the service’s configuration or image was changed after the container’s creation, docker-compose up picks up the changes by stopping and recreating the containers (preserving mounted volumes). To prevent Compose from picking up changes, use the --no-recreate flag.
@@ -156,4 +159,5 @@ fi
$DOCKER_COMPOSE_CMD up -d --no-recreate mariadb
CONTAINER_NAME=$(container_name mariadb)
wait_for_mariadb $CONTAINER_NAME
-$DOCKER_COMPOSE_CMD up
+#adding the detach mode (run in background)
+$DOCKER_COMPOSE_CMD up -d