build_images.sh 366 Bytes
Newer Older
Daniele Venzano's avatar
Daniele Venzano committed
1
2
3
4
5
#!/bin/sh

SPARK_VER=1.4.1
HADOOP_VER=hadoop2.4

Daniele Venzano's avatar
Daniele Venzano committed
6
python ./gen_dockerfiles.py ${SPARK_VER} ${HADOOP_VER}
Daniele Venzano's avatar
Daniele Venzano committed
7

8
for d in master worker shell submit notebook; do
Daniele Venzano's avatar
Daniele Venzano committed
9
  cd $d
Daniele Venzano's avatar
Daniele Venzano committed
10
11
  docker build -t 10.0.0.2:5000/venza/spark-$d:${SPARK_VER} .
  docker push 10.0.0.2:5000/venza/spark-$d:${SPARK_VER}
Daniele Venzano's avatar
Daniele Venzano committed
12
  cd ..
Daniele Venzano's avatar
Daniele Venzano committed
13
  docker -H 10.0.0.2:2380 pull 10.0.0.2:5000/venza/spark-$d:${SPARK_VER}
Daniele Venzano's avatar
Daniele Venzano committed
14
done