This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (36 loc) · 1.79 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
IMAGE_PREFIX = magiplatform
build-hdfs:
./build-tools --hadoop
docker build --pull -f hadoop/docker/hadoop-parent.dockerfile -t $(IMAGE_PREFIX)/hadoop-parent:latest .
docker build -f hdfs/docker/hdfs-parent.dockerfile -t $(IMAGE_PREFIX)/hdfs-parent:latest .
docker build -f hdfs/docker/hdfs-namenode.dockerfile -t $(IMAGE_PREFIX)/hdfs-namenode:latest .
docker build -f hdfs/docker/hdfs-datanode.dockerfile -t $(IMAGE_PREFIX)/hdfs-datanode:latest .
./build-tools --clean
build-hbase:
./build-tools --hbase
docker build -f hbase/docker/hbase-parent.dockerfile -t $(IMAGE_PREFIX)/hbase-parent:latest .
docker build -f hbase/docker/hbase-master.dockerfile -t $(IMAGE_PREFIX)/hbase-master:latest .
docker build -f hbase/docker/hbase-regionserver.dockerfile -t $(IMAGE_PREFIX)/hbase-regionserver:latest .
./build-tools --clean
build-spark:
# ./build-tools --spark
docker build -f spark/docker/spark-parent.dockerfile -t $(IMAGE_PREFIX)/spark-parent:3.1.2 .
docker build -f spark/docker/spark-master.dockerfile -t $(IMAGE_PREFIX)/spark-master:3.1.2 .
docker build -f spark/docker/spark-worker.dockerfile -t $(IMAGE_PREFIX)/spark-worker:3.1.2 .
# ./build-tools --clean
push-hdfs:
docker push $(IMAGE_PREFIX)/hadoop-parent:latest
docker push $(IMAGE_PREFIX)/hdfs-parent:latest
docker push $(IMAGE_PREFIX)/hdfs-namenode:latest
docker push $(IMAGE_PREFIX)/hdfs-datanode:latest
push-hbase:
docker push $(IMAGE_PREFIX)/hbase-parent:latest
docker push $(IMAGE_PREFIX)/hbase-master:latest
docker push $(IMAGE_PREFIX)/hbase-regionserver:latest
push-spark:
docker push $(IMAGE_PREFIX)/spark-parent:3.1.2
docker push $(IMAGE_PREFIX)/spark-master:3.1.2
docker push $(IMAGE_PREFIX)/spark-worker:3.1.2
build-all: build-hdfs build-hbase build-spark
push-all: build-all push-hdfs push-hbase push-spark
./build-tools --clean