File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ test() {
4747 if [[ -f $1 /test.py ]]; then
4848
4949 # Ensure app image is available
50- IMAGE_NAME =$( image_name $1 )
50+ IMAGE =$( image_name $1 ) : $IMAGE_TAG
5151 if [[ $IMAGE_TAG == " latest" ]]; then
5252 build $1
5353 else
54- log " Pulling image $IMAGE_NAME : $IMAGE_TAG "
55- docker pull $IMAGE_NAME : $IMAGE_TAG
54+ log " Pulling image $IMAGE "
55+ docker pull $IMAGE
5656 fi
5757
5858 # Ensure Ollama instance is available
@@ -66,13 +66,17 @@ test() {
6666 fi
6767
6868 log " Starting Gradio app container"
69- docker run --network $DOCKER_NET_NAME -d --name $1 -app $IMAGE_NAME
69+ docker run --network $DOCKER_NET_NAME -d --name $1 -app $IMAGE
7070
7171 # Give the app time to start
7272 sleep 3
7373
7474 log " Running tests"
75- docker run --network $DOCKER_NET_NAME --rm --name $1 -test-suite -e GRADIO_URL=http://$1 -app:7860 --entrypoint python $IMAGE_NAME test.py
75+ docker run --network $DOCKER_NET_NAME --rm \
76+ --name $1 -test-suite \
77+ -e GRADIO_URL=http://$1 -app:7860 --entrypoint python \
78+ $IMAGE \
79+ test.py
7680
7781 log " Removing containers:"
7882 docker rm -f ollama $1 -app
You can’t perform that action at this time.
0 commit comments