You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/10/06 02:28:52 UTC

[GitHub] [druid] clintropolis commented on a change in pull request #11742: Fix IT test script failure when host machine has multiple IP addresses

clintropolis commented on a change in pull request #11742:
URL: https://github.com/apache/druid/pull/11742#discussion_r722491055



##########
File path: 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)"

Review comment:
       >The build script should pick any one of local network addresses as DOCKER_HOST_IP. And as a fix, the last IP address returned by ifconfig command is picked.
   
   hmm, a bit confused, if the vpn addresses are last in the list, why `tail -n1` here instead of `head -n1` or do we want to use the vpn address as the docker ip? When i tested this on my mac it gave me my vpn address when using `tail` but my local address when using `head`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org