fixed localization problem (#283)
The command was not robust with respect to the localization of the current shell (e.g., in a German shell the output is "inet Adresse:" instead of "inet addr:"). Adding the language attribute solves this issue.
diff --git a/docker-compose/Makefile b/docker-compose/Makefile
index de8ff6a..7577eb1 100644
--- a/docker-compose/Makefile
+++ b/docker-compose/Makefile
@@ -2,7 +2,7 @@
# detect local ip of host as this is needed within containers to find the OpenWhisk API container
ifeq ("$(UNAME_STR)","Linux")
- LOCAL_IP=$(shell route | grep default | tr -s " " | cut -d " " -f 8 | xargs /sbin/ifconfig | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f 1)
+ LOCAL_IP=$(shell LANG=en_US.utf8; route | grep default | tr -s " " | cut -d " " -f 8 | xargs /sbin/ifconfig | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f 1)
# inet addr: not present, trying with inet.
ifeq ($(LOCAL_IP), )
LOCAL_IP=$(shell route | grep default | tr -s " " | cut -d " " -f 8 | xargs /sbin/ifconfig | grep "inet " | tr -s " " | cut -d " " -f 3)