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

frankchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e3767b  Use the last ip as docker host ip (#11742)
2e3767b is described below

commit 2e3767bef07e2e7ab8f1858a55708e83a76ea7d1
Author: Frank Chen <[email protected]>
AuthorDate: Sat Nov 20 13:31:39 2021 +0800

    Use the last ip as docker host ip (#11742)
---
 integration-tests/docker/tls/set-docker-host-ip.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/integration-tests/docker/tls/set-docker-host-ip.sh 
b/integration-tests/docker/tls/set-docker-host-ip.sh
index 66b1464..609d978 100755
--- a/integration-tests/docker/tls/set-docker-host-ip.sh
+++ b/integration-tests/docker/tls/set-docker-host-ip.sh
@@ -24,7 +24,7 @@ fi
 
 if [ -z "$DOCKER_HOST_IP" ]; then
   # Another Mac specific way, when the machine isn't able to resolve its own 
name
-  DOCKER_HOST_IP="$(ifconfig | fgrep 'inet ' | fgrep -v 127.0.0.1 | awk 
'{print $2}')"
+  DOCKER_HOST_IP="$(ifconfig | fgrep 'inet ' | fgrep -v 127.0.0.1 | awk 
'{print $2}' | tail -n1)"
 fi
 
 if [ -z "$DOCKER_HOST_IP" ]; then

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to