This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch bind-test-to-localhost
in repository https://gitbox.apache.org/repos/asf/tika-docker.git

commit 6cb36c1cc7395961825ba17d19e2461847c94f66
Author: tballison <[email protected]>
AuthorDate: Fri Oct 21 15:34:37 2022 -0400

    bind test to localhost
---
 docker-tool.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ done
 
 
 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})

Reply via email to