-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
18 lines (14 loc) · 1014 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
current_branch := $(shell git rev-parse --abbrev-ref HEAD)
build:
docker build -t kilfu0701/hadoop-base:$(current_branch) -f base/Dockerfile .
docker build --no-cache -t kilfu0701/hadoop-namenode:$(current_branch) -f namenode/Dockerfile .
docker build --no-cache -t kilfu0701/hadoop-datanode:$(current_branch) -f datanode/Dockerfile .
docker build --no-cache -t kilfu0701/hadoop-resourcemanager:$(current_branch) -f resourcemanager/Dockerfile .
docker build --no-cache -t kilfu0701/hadoop-nodemanager:$(current_branch) -f nodemanager/Dockerfile .
docker build --no-cache -t kilfu0701/hadoop-historyserver:$(current_branch) -f historyserver/Dockerfile .
build_base_all:
docker buildx build --push --platform linux/amd64,linux/arm64,linux/amd64/v2 --no-cache -t kilfu0701/hadoop-base:$(current_branch) -f base/Dockerfile .
clean:
docker image prune
test_historyserver:
docker run --env-file hadoop-hive.env -ti kilfu0701/hadoop-base:3.3.2-java8 yarn --config /opt/hadoop-3.3.2/etc/hadoop historyserver