forked from yeslogic/docker-prince
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
75 lines (65 loc) · 2.08 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
DOCKER?=docker
PRINCE_VERSION?=15.1
all: debian debian-slim
debian: debian-9 debian-10 debian-11
debian-slim: debian-9-slim debian-10-slim debian-11-slim
debian-11: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=11 \
--build-arg BASE_IMAGE=11 \
.
debian-10: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=10 \
--build-arg BASE_IMAGE=10 \
.
debian-9: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=9 \
--build-arg BASE_IMAGE=9 \
.
debian-11-slim: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:latest \
-t yeslogic/prince:$(PRINCE_VERSION) \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=11 \
--build-arg BASE_IMAGE=11-slim \
.
debian-10-slim: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:$(PRINCE_VERSION) \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=10 \
--build-arg BASE_IMAGE=10-slim \
.
debian-9-slim: Dockerfile.debian
$(DOCKER) build \
-f $< \
-t yeslogic/prince:$(PRINCE_VERSION)-$@ \
--build-arg PRINCE_VERSION=$(PRINCE_VERSION) \
--build-arg DEBIAN_VERSION=9 \
--build-arg BASE_IMAGE=9-slim \
.
dockerhub: all
$(DOCKER) push yeslogic/prince:latest
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-11
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-10
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-9
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-11-slim
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-10-slim
$(DOCKER) push yeslogic/prince:$(PRINCE_VERSION)-debian-9-slim