| commit | 6cb36c1cc7395961825ba17d19e2461847c94f66 | [log] [tgz] |
|---|---|---|
| author | tballison <tallison@apache.org> | Fri Oct 21 15:34:37 2022 -0400 |
| committer | tballison <tallison@apache.org> | Fri Oct 21 15:34:37 2022 -0400 |
| tree | 3e9b01e72d0b93cc2ae56de9c944f60c4b8eeddd | |
| parent | 3c20c2c117ec2c03f0f08b0cb955ef380afd910e [diff] |
bind test to localhost
diff --git a/docker-tool.sh b/docker-tool.sh index c49861c..4e0710d 100755 --- a/docker-tool.sh +++ b/docker-tool.sh
@@ -37,7 +37,7 @@ test_docker_image() { - docker run -d --name "$1" -p 9998:9998 apache/tika:"$1" + docker run -d --name "$1" -p localhost:9998:9998 apache/tika:"$1" sleep 10 url=http://localhost:9998/version status=$(curl --head --location --connect-timeout 5 --write-out %{http_code} --silent --output /dev/null ${url})