Docker Container Build and Run setup with foundations for adding docker integration tests. Docker images built with Hadoop 2.8.4 Hive 2.3.3 and Spark 2.3.1 and published to docker-hub
Look at quickstart document for how to setup docker and run demo
This commit is contained in:
committed by
vinoth chandar
parent
9710b5a3a6
commit
f3418e4718
13
docker/hoodie/hadoop/base/export_container_ip.sh
Executable file
13
docker/hoodie/hadoop/base/export_container_ip.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
interfaces=( "en0" "eth0" )
|
||||
|
||||
ipAddr=""
|
||||
for interface in "${interfaces[@]}"
|
||||
do
|
||||
ipAddr=`ifconfig $interface | grep -Eo 'inet (addr:)?([0-9]+\.){3}[0-9]+' | grep -Eo '([0-9]+\.){3}[0-9]+' | grep -v '127.0.0.1' | head`
|
||||
if [ -n "$ipAddr" ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Container IP is set to : $ipAddr"
|
||||
export MY_CONTAINER_IP=$ipAddr
|
||||
Reference in New Issue
Block a user