-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
128 lines (98 loc) · 3.15 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
all:
for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
docker build -t cyrusimapd/$$dist - < $$dist ; \
done
pull:
for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
docker pull cyrusimapd/$$dist ; \
done
run:
for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
docker run -t -i \
-e "COMMIT=$(COMMIT)" \
-e "DIFFERENTIAL=$(DIFFERENTIAL)" \
-e "PHAB_CERT=$(PHAB_CERT)" \
-e "PHAB_USER=$(PHAB_USER)" \
--rm=true cyrusimapd/$$dist 2>&1 | tee $$dist.log; \
done
push:
for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
docker push cyrusimapd/$$dist ; \
done
list:
@for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
echo $$dist ; \
done
clean:
for container in $$(docker ps -q); do \
docker kill --signal="SIGKILL" $$container ; \
done
for container in $$(docker ps -aq); do \
docker rm -f $$container ; \
done
for image in $$(docker images -aq --filter dangling=true); do \
docker rmi -f $$image ; \
done
really-clean:
for dist in $$(find . -mindepth 1 -maxdepth 1 -type f -exec basename {} \; | sort | grep -E '^[a-z]+$$'); do \
docker rmi cyrusimapd/$$dist || : ; \
docker rmi $$dist || : ; \
done
centos: rhel
debian: squeeze wheezy jessie sid
fedora: heisenbug twentyone rawhide
opensuse: bottle harlequin tumbleweed
rhel: santiago maipo
ubuntu: precise trusty utopic vivid
bottle:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
harlequin:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
heisenbug:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
jessie:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
maipo:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
precise:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
rawhide:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
santiago:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
sid:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
squeeze:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
trusty:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
tumbleweed:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
twentyone:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
utopic:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
vivid:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
wheezy:
docker build -t $@ - < $@
docker run -it --entrypoint="/bin/bash" $@ -s
tikanga:
docker build -t $@ - < tikanga.obsolete
docker run -it --entrypoint="/bin/bash" $@ -s
.PHONY: bottle harlequin heisenbug jessie maipo precise rawhide santiago sid squeeze tikanga trusty tumbleweed twentyone utopic vivid wheezy