Skip to content

Commit

Permalink
Only create docker network when running a test
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Nov 14, 2024
1 parent 21e9744 commit d2bd00e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web-apps/test-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2bd00e

Please sign in to comment.