We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba70ef commit d83a70bCopy full SHA for d83a70b
1 file changed
.test/tests/static/run.sh
@@ -8,6 +8,9 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
8
9
image="$1"
10
11
+port=80
12
+if echo "$image" | grep -q "unprivileged"; then port=8080; fi
13
+
14
clientImage='buildpack-deps:buster-curl'
15
# ensure the clientImage is ready and available
16
if ! docker image inspect "$clientImage" &> /dev/null; then
@@ -37,7 +40,7 @@ _request() {
37
40
docker run --rm \
38
41
--link "$cid":nginx \
39
42
"$clientImage" \
- curl -fsSL -X"$method" --connect-to '::nginx:' "$@" "$proto://example.com/$url"
43
+ curl -fsSL -X"$method" --connect-to "::nginx:$port" "$@" "$proto://example.com/$url"
44
}
45
46
. "$HOME/oi/test/retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]'
0 commit comments