This repository was archived by the owner on Jan 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,5 @@ for (( I=0; I<$NLEN; I++ )); do
91
91
done
92
92
93
93
done
94
+
95
+ docker images
Original file line number Diff line number Diff line change @@ -9,11 +9,15 @@ function test() {
9
9
10
10
FOUND=$( docker image ls -q fabiocicerchia/nginx-lua:$DOCKER_TAG | wc -l)
11
11
if [ $FOUND -ne 0 ]; then
12
- docker run -d --name nginx_lua_test -p 8080:80 -v $PWD /test/nginx.conf:/etc/nginx/nginx.conf fabiocicerchia/nginx-lua:$DOCKER_TAG \
13
- && until $( curl --output /dev/null --silent --head --fail http://localhost:8080) ; do echo -n ' .' ; sleep 0.5; done \
14
- ; curl -v http://localhost:8080 | grep " Welcome to nginx" || exit 1 \
15
- ; curl -v http://localhost:8080/lua_content | grep " Hello world" || exit 1 \
16
- ; docker rm -f nginx_lua_test
12
+ docker run -d --name nginx_lua_test -p 8080:80 -v $PWD /test/nginx.conf:/etc/nginx/nginx.conf fabiocicerchia/nginx-lua:$DOCKER_TAG
13
+ COUNT=0
14
+ until [ $COUNT -eq 20 -o " $( curl --output /dev/null --silent --head --fail http://localhost:8080; echo $? ) " == " 0" ]; do
15
+ echo -n ' .' ; sleep 0.5;
16
+ COUNT=$(( COUNT+ 1 ))
17
+ done
18
+ curl -v http://localhost:8080 | grep " Welcome to nginx" || exit 1
19
+ curl -v http://localhost:8080/lua_content | grep " Hello world" || exit 1
20
+ docker rm -f nginx_lua_test
17
21
else
18
22
echo " Image not found: fabiocicerchia/nginx-lua:$DOCKER_TAG "
19
23
fi
You can’t perform that action at this time.
0 commit comments