From ebbbaad767199a09ad1a64189d2862e110158c29 Mon Sep 17 00:00:00 2001
From: BIGAUD Nathan <nathan.bigaud@inria.fr>
Date: Fri, 4 Aug 2023 15:32:28 +0200
Subject: [PATCH] Full orchestrating script, tested with up to 100 containers

---
 deploy_mock/build.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/deploy_mock/build.sh b/deploy_mock/build.sh
index f36fc7c8..f20c8591 100644
--- a/deploy_mock/build.sh
+++ b/deploy_mock/build.sh
@@ -3,9 +3,12 @@
 # Create .env file
 echo "NBCLIENTS=$1" | cat > scripts/.env
 
-# create a folders with data and script
+# create NBCLIENTS+1 folders with data and script for clients and server
 python scripts/setup.py --clients $1
 
+# Recursively build compose file
+python scripts/build_compose.py --clients $1
 
-
-
+# Launch docker compose
+docker compose down --remove-orphans
+docker compose up
\ No newline at end of file
-- 
GitLab