File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -307,9 +307,11 @@ if [[ -n ${CHECKS["port-forwards"]} ]]; then
307
307
fi
308
308
limactl shell " $NAME " $sudo $CONTAINER_ENGINE info
309
309
limactl shell " $NAME " $sudo $CONTAINER_ENGINE pull --quiet ${nginx_image}
310
- limactl shell " $NAME " $sudo $CONTAINER_ENGINE run -d --name nginx -p 8888:80 ${nginx_image}
311
-
312
- timeout 3m bash -euxc " until curl -f --retry 30 --retry-connrefused http://${hostip} :8888; do sleep 3; done"
310
+ for hostport in 8888 80; do
311
+ limactl shell " $NAME " $sudo $CONTAINER_ENGINE run -d --name nginx -p ${hostport} :80 ${nginx_image}
312
+ timeout 3m bash -euxc " until curl -f --retry 30 --retry-connrefused http://${hostip} :${hostport} ; do sleep 3; done"
313
+ limactl shell " $NAME " $sudo $CONTAINER_ENGINE rm -f nginx
314
+ done
313
315
fi
314
316
fi
315
317
set +x
You can’t perform that action at this time.
0 commit comments