-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
41 lines (38 loc) · 947 Bytes
/
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
# empty=
# hdfs-dev-state=$(shell docker inspect --format '{{.State.Status}}' hdfs-dev)
# hdfs-prod-state=$(shell docker inspect --format '{{.State.Status}}' hdfs-prod)
build-dev:
docker build -t adolphlwq/docker-hdfs:dev .
run-dev:
docker run -d --net host --name hdfs-dev adolphlwq/docker-hdfs:dev
clean-dev:
docker stop hdfs-dev
docker rm hdfs-dev
build-prod:
docker build -t adolphlwq/docker-hdfs:prod .
run-prod:
docker run -d --net host --name hdfs-prod adolphlwq/docker-hdfs:prod
clean-prod:
docker stop hdfs-prod
docker rm hdfs-prod
clean:
ifdef hdfs-dev-state
ifeq ($(hdfs-dev-state),running)
docker stop hdfs-dev
docker rm hdfs-dev
else
docker rm hdfs-dev
endif
else
echo "not having hdfs-dev container"
endif
ifdef hdfs-prod-state
ifeq ($(hdfs-prod-state),running)
docker stop hdfs-prod
docker rm hdfs-prod
else
docker rm hdfs-prod
endif
else
echo "not having hdfs-prod container"
endif