From d2bd00ed2d59cd7a416beb60070e7017de2f9bd7 Mon Sep 17 00:00:00 2001 From: sd109 Date: Thu, 14 Nov 2024 11:14:38 +0000 Subject: [PATCH] Only create docker network when running a test --- web-apps/test-images.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web-apps/test-images.sh b/web-apps/test-images.sh index 69979df..d2a9706 100755 --- a/web-apps/test-images.sh +++ b/web-apps/test-images.sh @@ -39,13 +39,13 @@ test() { echo "----- Starting test process for $1 app -----" echo - DOCKER_NET_NAME=azimuth-llm-shared - if [[ ! $(docker network ls | grep $DOCKER_NET_NAME) ]]; then - docker network create $DOCKER_NET_NAME - fi - if [[ -f $1/test.py ]]; then + DOCKER_NET_NAME=azimuth-llm-shared + if [[ ! $(docker network ls | grep $DOCKER_NET_NAME) ]]; then + docker network create $DOCKER_NET_NAME + fi + # Ensure app image is available IMAGE=$(image_name $1):$IMAGE_TAG if [[ $IMAGE_TAG == "latest" ]]; then