Makefile 21.3 KB
Newer Older
1
NAME_BASEIMAGE = typo3gmbh/baseimage
2
MAJOR_BASEIMAGE=2
3
MINOR_BASEIMAGE=0
4
PATCHLEVEL_BASEIMAGE=0
5
6
7
FULLVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE).$(PATCHLEVEL_BASEIMAGE)
SHORTVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE)

Christian Kuhn's avatar
Christian Kuhn committed
8

9
NAME_PHP53 = typo3gmbh/php53
10
MAJOR_PHP53=2
11
MINOR_PHP53=0
12
PATCHLEVEL_PHP53=0
13
14
15
16
FULLVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53).$(PATCHLEVEL_PHP53)
SHORTVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53)

NAME_PHP54 = typo3gmbh/php54
17
MAJOR_PHP54=2
18
MINOR_PHP54=0
19
PATCHLEVEL_PHP54=0
20
21
22
FULLVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54).$(PATCHLEVEL_PHP54)
SHORTVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54)

Christian Kuhn's avatar
Christian Kuhn committed
23
NAME_PHP55 = typo3gmbh/php55
24
MAJOR_PHP55=2
25
MINOR_PHP55=0
26
PATCHLEVEL_PHP55=0
Christian Kuhn's avatar
Christian Kuhn committed
27
28
29
30
FULLVERSION_PHP55=$(MAJOR_PHP55).$(MINOR_PHP55).$(PATCHLEVEL_PHP55)
SHORTVERSION_PHP55=$(MAJOR_PHP55).$(MINOR_PHP55)

NAME_PHP56 = typo3gmbh/php56
31
MAJOR_PHP56=2
Christian Kuhn's avatar
Christian Kuhn committed
32
MINOR_PHP56=0
33
PATCHLEVEL_PHP56=0
Christian Kuhn's avatar
Christian Kuhn committed
34
35
36
37
FULLVERSION_PHP56=$(MAJOR_PHP56).$(MINOR_PHP56).$(PATCHLEVEL_PHP56)
SHORTVERSION_PHP56=$(MAJOR_PHP56).$(MINOR_PHP56)

NAME_PHP70 = typo3gmbh/php70
38
MAJOR_PHP70=2
Christian Kuhn's avatar
Christian Kuhn committed
39
MINOR_PHP70=0
40
PATCHLEVEL_PHP70=0
Christian Kuhn's avatar
Christian Kuhn committed
41
42
43
44
FULLVERSION_PHP70=$(MAJOR_PHP70).$(MINOR_PHP70).$(PATCHLEVEL_PHP70)
SHORTVERSION_PHP70=$(MAJOR_PHP70).$(MINOR_PHP70)

NAME_PHP71 = typo3gmbh/php71
45
MAJOR_PHP71=2
Christian Kuhn's avatar
Christian Kuhn committed
46
MINOR_PHP71=0
47
PATCHLEVEL_PHP71=0
Christian Kuhn's avatar
Christian Kuhn committed
48
49
50
FULLVERSION_PHP71=$(MAJOR_PHP71).$(MINOR_PHP71).$(PATCHLEVEL_PHP71)
SHORTVERSION_PHP71=$(MAJOR_PHP71).$(MINOR_PHP71)

Christian Kuhn's avatar
Christian Kuhn committed
51
NAME_PHP72 = typo3gmbh/php72
52
MAJOR_PHP72=2
Christian Kuhn's avatar
Christian Kuhn committed
53
MINOR_PHP72=0
54
PATCHLEVEL_PHP72=0
Christian Kuhn's avatar
Christian Kuhn committed
55
56
57
FULLVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72).$(PATCHLEVEL_PHP72)
SHORTVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72)

Christian Kuhn's avatar
Christian Kuhn committed
58

59
NAME_BAMBOO_PHP53 = typo3gmbh/bamboo-remote-agent-php53
60
MAJOR_BAMBOO_PHP53=2
61
MINOR_BAMBOO_PHP53=0
62
PATCHLEVEL_BAMBOO_PHP53=0
63
64
65
66
FULLVERSION_BAMBOO_PHP53=$(MAJOR_BAMBOO_PHP53).$(MINOR_BAMBOO_PHP53).$(PATCHLEVEL_BAMBOO_PHP53)
SHORTVERSION_BAMBOO_PHP53=$(MAJOR_BAMBOO_PHP53).$(MINOR_BAMBOO_PHP53)

NAME_BAMBOO_PHP54 = typo3gmbh/bamboo-remote-agent-php54
67
MAJOR_BAMBOO_PHP54=2
68
MINOR_BAMBOO_PHP54=0
69
PATCHLEVEL_BAMBOO_PHP54=0
70
71
72
FULLVERSION_BAMBOO_PHP54=$(MAJOR_BAMBOO_PHP54).$(MINOR_BAMBOO_PHP54).$(PATCHLEVEL_BAMBOO_PHP54)
SHORTVERSION_BAMBOO_PHP54=$(MAJOR_BAMBOO_PHP54).$(MINOR_BAMBOO_PHP54)

73
NAME_BAMBOO_PHP55 = typo3gmbh/bamboo-remote-agent-php55
74
MAJOR_BAMBOO_PHP55=2
75
MINOR_BAMBOO_PHP55=0
76
PATCHLEVEL_BAMBOO_PHP55=0
77
78
79
80
FULLVERSION_BAMBOO_PHP55=$(MAJOR_BAMBOO_PHP55).$(MINOR_BAMBOO_PHP55).$(PATCHLEVEL_BAMBOO_PHP55)
SHORTVERSION_BAMBOO_PHP55=$(MAJOR_BAMBOO_PHP55).$(MINOR_BAMBOO_PHP55)

NAME_BAMBOO_PHP56 = typo3gmbh/bamboo-remote-agent-php56
81
MAJOR_BAMBOO_PHP56=2
82
MINOR_BAMBOO_PHP56=0
83
PATCHLEVEL_BAMBOO_PHP56=0
84
85
86
87
FULLVERSION_BAMBOO_PHP56=$(MAJOR_BAMBOO_PHP56).$(MINOR_BAMBOO_PHP56).$(PATCHLEVEL_BAMBOO_PHP56)
SHORTVERSION_BAMBOO_PHP56=$(MAJOR_BAMBOO_PHP56).$(MINOR_BAMBOO_PHP56)

NAME_BAMBOO_PHP70 = typo3gmbh/bamboo-remote-agent-php70
88
MAJOR_BAMBOO_PHP70=2
89
MINOR_BAMBOO_PHP70=0
90
PATCHLEVEL_BAMBOO_PHP70=0
91
92
93
94
FULLVERSION_BAMBOO_PHP70=$(MAJOR_BAMBOO_PHP70).$(MINOR_BAMBOO_PHP70).$(PATCHLEVEL_BAMBOO_PHP70)
SHORTVERSION_BAMBOO_PHP70=$(MAJOR_BAMBOO_PHP70).$(MINOR_BAMBOO_PHP70)

NAME_BAMBOO_PHP71 = typo3gmbh/bamboo-remote-agent-php71
95
MAJOR_BAMBOO_PHP71=2
96
MINOR_BAMBOO_PHP71=0
97
PATCHLEVEL_BAMBOO_PHP71=0
98
99
100
FULLVERSION_BAMBOO_PHP71=$(MAJOR_BAMBOO_PHP71).$(MINOR_BAMBOO_PHP71).$(PATCHLEVEL_BAMBOO_PHP71)
SHORTVERSION_BAMBOO_PHP71=$(MAJOR_BAMBOO_PHP71).$(MINOR_BAMBOO_PHP71)

Christian Kuhn's avatar
Christian Kuhn committed
101
NAME_BAMBOO_PHP72 = typo3gmbh/bamboo-remote-agent-php72
102
MAJOR_BAMBOO_PHP72=2
Christian Kuhn's avatar
Christian Kuhn committed
103
MINOR_BAMBOO_PHP72=0
104
PATCHLEVEL_BAMBOO_PHP72=0
Christian Kuhn's avatar
Christian Kuhn committed
105
106
107
FULLVERSION_BAMBOO_PHP72=$(MAJOR_BAMBOO_PHP72).$(MINOR_BAMBOO_PHP72).$(PATCHLEVEL_BAMBOO_PHP72)
SHORTVERSION_BAMBOO_PHP72=$(MAJOR_BAMBOO_PHP72).$(MINOR_BAMBOO_PHP72)

108

Christian Kuhn's avatar
Christian Kuhn committed
109

110
111
112
113
.PHONY: \
	all \
	build \
	build_baseimage \
114
115
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
116
117
118
119
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
120
	build_php72 \
121
122
	build_bamboo_php53 \
	build_bamboo_php54 \
123
124
125
126
	build_bamboo_php55 \
	build_bamboo_php56 \
	build_bamboo_php70 \
	build_bamboo_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
127
	build_bamboo_php72 \
128
129
	release \
	release_baseimage \
130
131
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
132
133
134
135
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
136
	release_php72 \
137
138
	release_bamboo_php53 \
	release_bamboo_php54 \
139
140
141
142
	release_bamboo_php55 \
	release_bamboo_php56 \
	release_bamboo_php70 \
	release_bamboo_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
143
	release_bamboo_php72 \
144
145
	clean \
	clean_baseimage \
146
147
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
148
149
150
151
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
152
	clean_php72 \
153
154
	clean_bamboo_php53 \
	clean_bamboo_php54 \
155
156
157
158
	clean_bamboo_php55 \
	clean_bamboo_php56 \
	clean_bamboo_php70 \
	clean_bamboo_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
159
	clean_bamboo_php72 \
160
161
	clean_images \
	clean_images_baseimage \
162
163
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
164
165
166
167
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
168
	clean_images_php72 \
169
170
	clean_images_bamboo_php53 \
	clean_images_bamboo_php54 \
171
172
173
	clean_images_bamboo_php55 \
	clean_images_bamboo_php56 \
	clean_images_bamboo_php70 \
Christian Kuhn's avatar
Christian Kuhn committed
174
175
	clean_images_bamboo_php71 \
	clean_images_bamboo_php72
176
177


Christian Kuhn's avatar
Christian Kuhn committed
178

179
180
181
182
183
all: \
	build

build: \
	build_baseimage \
184
	build_php \
185
	build_bamboo
186
187

build_php: \
188
189
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
190
191
192
193
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
194
195
196
	build_php72

build_bamboo: \
197
198
	build_bamboo_php53 \
	build_bamboo_php54 \
199
200
201
	build_bamboo_php55 \
	build_bamboo_php56 \
	build_bamboo_php70 \
Christian Kuhn's avatar
Christian Kuhn committed
202
203
	build_bamboo_php71 \
	build_bamboo_php72
204
205
206

release: \
	release_baseimage \
207
208
209
210
	release_php \
	release_bamboo

release_php: \
211
212
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
213
214
215
216
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
217
218
219
	release_php72

release_bamboo: \
220
221
	release_bamboo_php53 \
	release_bamboo_php54 \
222
223
224
	release_bamboo_php55 \
	release_bamboo_php56 \
	release_bamboo_php70 \
Christian Kuhn's avatar
Christian Kuhn committed
225
226
	release_bamboo_php71 \
	release_bamboo_php72
227
228
229

clean: \
	clean_baseimage \
230
231
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
232
233
234
235
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
236
	clean_php72 \
237
238
	clean_bamboo_php53 \
	clean_bamboo_php54 \
239
240
241
	clean_bamboo_php55 \
	clean_bamboo_php56 \
	clean_bamboo_php70 \
Christian Kuhn's avatar
Christian Kuhn committed
242
243
	clean_bamboo_php71 \
	clean_bamboo_php72
244
245
246
247


clean_images: \
	clean_images_baseimage \
248
249
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
250
251
252
253
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
254
	clean_images_php72 \
255
256
	clean_images_bamboo_php53 \
	clean_images_bamboo_php54 \
257
258
259
	clean_images_bamboo_php55 \
	clean_images_bamboo_php56 \
	clean_images_bamboo_php70 \
Christian Kuhn's avatar
Christian Kuhn committed
260
261
	clean_images_bamboo_php71 \
	clean_images_bamboo_php72
262
263
264
265
266
267


build_baseimage:
	rm -rf build_baseimage
	cp -pR baseimage build_baseimage
	docker build -t $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) build_baseimage
268
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287

release_baseimage:
	@if ! docker images $(NAME_BASEIMAGE) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BASEIMAGE); then \
		echo "$(NAME_BASEIMAGE) version $(FULLVERSION_BASEIMAGE) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(NAME_BASEIMAGE):latest
	docker push $(NAME_BASEIMAGE):latest
	docker push $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE)
	docker push $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)

clean_baseimage:
	rm -rf build_baseimage

clean_images_baseimage:
	docker rmi $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) || true
	docker rmi $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE) || true
	docker rmi $(NAME_BASEIMAGE):latest || true


Christian Kuhn's avatar
Christian Kuhn committed
288

289
build_php53: build_baseimage
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
	rm -rf build_php53
	cp -pR php53 build_php53
	docker build -t $(NAME_PHP53):$(FULLVERSION_PHP53) build_php53
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):$(SHORTVERSION_PHP53)

release_php53:
	@if ! docker images $(NAME_PHP53) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP53); then \
		echo "$(NAME_PHP53) version $(FULLVERSION_PHP53) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):latest
	docker push $(NAME_PHP53):latest
	docker push $(NAME_PHP53):$(FULLVERSION_PHP53)
	docker push $(NAME_PHP53):$(SHORTVERSION_PHP53)

clean_php53:
	rm -rf build_php53

clean_images_php53:
	docker rmi $(NAME_PHP53):latest || true
	docker rmi $(NAME_PHP53):$(SHORTVERSION_PHP53) || true
	docker rmi $(NAME_PHP53):$(FULLVERSION_PHP53) || true


313
build_php54: build_baseimage
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
	rm -rf build_php54
	cp -pR php54 build_php54
	docker build -t $(NAME_PHP54):$(FULLVERSION_PHP54) build_php54
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):$(SHORTVERSION_PHP54)

release_php54:
	@if ! docker images $(NAME_PHP54) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP54); then \
		echo "$(NAME_PHP54) version $(FULLVERSION_PHP54) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):latest
	docker push $(NAME_PHP54):latest
	docker push $(NAME_PHP54):$(FULLVERSION_PHP54)
	docker push $(NAME_PHP54):$(SHORTVERSION_PHP54)

clean_php54:
	rm -rf build_php54

clean_images_php54:
	docker rmi $(NAME_PHP54):latest || true
	docker rmi $(NAME_PHP54):$(SHORTVERSION_PHP54) || true
	docker rmi $(NAME_PHP54):$(FULLVERSION_PHP54) || true


337
build_php55: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
	rm -rf build_php55
	cp -pR php55 build_php55
	docker build -t $(NAME_PHP55):$(FULLVERSION_PHP55) build_php55
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(NAME_PHP55):$(SHORTVERSION_PHP55)

release_php55:
	@if ! docker images $(NAME_PHP55) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP55); then \
		echo "$(NAME_PHP55) version $(FULLVERSION_PHP55) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(NAME_PHP55):latest
	docker push $(NAME_PHP55):latest
	docker push $(NAME_PHP55):$(FULLVERSION_PHP55)
	docker push $(NAME_PHP55):$(SHORTVERSION_PHP55)

clean_php55:
	rm -rf build_php55

clean_images_php55:
	docker rmi $(NAME_PHP55):latest || true
	docker rmi $(NAME_PHP55):$(SHORTVERSION_PHP55) || true
	docker rmi $(NAME_PHP55):$(FULLVERSION_PHP55) || true


361
build_php56: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
	rm -rf build_php56
	cp -pR php56 build_php56
	docker build -t $(NAME_PHP56):$(FULLVERSION_PHP56) build_php56
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(NAME_PHP56):$(SHORTVERSION_PHP56)

release_php56:
	@if ! docker images $(NAME_PHP56) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP56); then \
		echo "$(NAME_PHP56) version $(FULLVERSION_PHP56) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(NAME_PHP56):latest
	docker push $(NAME_PHP56):latest
	docker push $(NAME_PHP56):$(FULLVERSION_PHP56)
	docker push $(NAME_PHP56):$(SHORTVERSION_PHP56)

clean_php56:
	rm -rf build_php56

clean_images_php56:
	docker rmi $(NAME_PHP56):latest || true
	docker rmi $(NAME_PHP56):$(SHORTVERSION_PHP56) || true
	docker rmi $(NAME_PHP56):$(FULLVERSION_PHP56) || true


385
build_php70: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
	rm -rf build_php70
	cp -pR php70 build_php70
	docker build -t $(NAME_PHP70):$(FULLVERSION_PHP70) build_php70
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(NAME_PHP70):$(SHORTVERSION_PHP70)

release_php70:
	@if ! docker images $(NAME_PHP70) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP70); then \
		echo "$(NAME_PHP70) version $(FULLVERSION_PHP70) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(NAME_PHP70):latest
	docker push $(NAME_PHP70):latest
	docker push $(NAME_PHP70):$(FULLVERSION_PHP70)
	docker push $(NAME_PHP70):$(SHORTVERSION_PHP70)

clean_php70:
	rm -rf build_php70

clean_images_php70:
	docker rmi $(NAME_PHP70):latest || true
	docker rmi $(NAME_PHP70):$(SHORTVERSION_PHP70) || true
	docker rmi $(NAME_PHP70):$(FULLVERSION_PHP70) || true


409
build_php71: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
	rm -rf build_php71
	cp -pR php71 build_php71
	docker build -t $(NAME_PHP71):$(FULLVERSION_PHP71) build_php71
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(NAME_PHP71):$(SHORTVERSION_PHP71)

release_php71:
	@if ! docker images $(NAME_PHP71) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP71); then \
		echo "$(NAME_PHP71) version $(FULLVERSION_PHP71) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(NAME_PHP71):latest
	docker push $(NAME_PHP71):latest
	docker push $(NAME_PHP71):$(FULLVERSION_PHP71)
	docker push $(NAME_PHP71):$(SHORTVERSION_PHP71)

clean_php71:
	rm -rf build_php71

clean_images_php71:
	docker rmi $(NAME_PHP71):latest || true
	docker rmi $(NAME_PHP71):$(SHORTVERSION_PHP71) || true
	docker rmi $(NAME_PHP71):$(FULLVERSION_PHP71) || true


433
build_php72: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
	rm -rf build_php72
	cp -pR php72 build_php72
	docker build -t $(NAME_PHP72):$(FULLVERSION_PHP72) build_php72
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(NAME_PHP72):$(SHORTVERSION_PHP72)

release_php72:
	@if ! docker images $(NAME_PHP72) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP72); then \
		echo "$(NAME_PHP72) version $(FULLVERSION_PHP72) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(NAME_PHP72):latest
	docker push $(NAME_PHP72):latest
	docker push $(NAME_PHP72):$(FULLVERSION_PHP72)
	docker push $(NAME_PHP72):$(SHORTVERSION_PHP72)

clean_php72:
	rm -rf build_php72

clean_images_php72:
	docker rmi $(NAME_PHP72):latest || true
	docker rmi $(NAME_PHP72):$(SHORTVERSION_PHP72) || true
	docker rmi $(NAME_PHP72):$(FULLVERSION_PHP72) || true


Christian Kuhn's avatar
Christian Kuhn committed
457

458
build_bamboo_php53: build_php53
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
	rm -rf build_bamboo-php53
	cp -pR bamboo-remote-agent-php53 build_bamboo-php53
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP53) >> build_bamboo-php53/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) build_bamboo-php53

release_bamboo_php53:
	@if ! docker images $(NAME_BAMBOO_PHP53) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP53); then \
		echo "$(NAME_BAMBOO_PHP53) version $(FULLVERSION_BAMBOO_PHP53) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53)
	docker tag $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) $(NAME_BAMBOO_PHP53):latest
	docker push $(NAME_BAMBOO_PHP53):latest
	docker push $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53)
	docker push $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53)

clean_bamboo_php53:
	rm -rf build_bamboo-php53

clean_images_bamboo_php53:
	docker rmi $(NAME_BAMBOO_PHP53):latest || true
	docker rmi $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53) || true
	docker rmi $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) || true


483
build_bamboo_php54: build_php54
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
	rm -rf build_bamboo-php54
	cp -pR bamboo-remote-agent-php54 build_bamboo-php54
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP54) >> build_bamboo-php54/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) build_bamboo-php54

release_bamboo_php54:
	@if ! docker images $(NAME_BAMBOO_PHP54) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP54); then \
		echo "$(NAME_BAMBOO_PHP54) version $(FULLVERSION_BAMBOO_PHP54) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54)
	docker tag $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) $(NAME_BAMBOO_PHP54):latest
	docker push $(NAME_BAMBOO_PHP54):latest
	docker push $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54)
	docker push $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54)

clean_bamboo_php54:
	rm -rf build_bamboo-php54

clean_images_bamboo_php54:
	docker rmi $(NAME_BAMBOO_PHP54):latest || true
	docker rmi $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54) || true
	docker rmi $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) || true


508
build_bamboo_php55: build_php55
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
	rm -rf build_bamboo-php55
	cp -pR bamboo-remote-agent-php55 build_bamboo-php55
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP55) >> build_bamboo-php55/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP55):$(FULLVERSION_BAMBOO_PHP55) build_bamboo-php55

release_bamboo_php55:
	@if ! docker images $(NAME_BAMBOO_PHP55) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP55); then \
		echo "$(NAME_BAMBOO_PHP55) version $(FULLVERSION_BAMBOO_PHP55) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP55):$(FULLVERSION_BAMBOO_PHP55) $(NAME_BAMBOO_PHP55):$(SHORTVERSION_BAMBOO_PHP55)
	docker tag $(NAME_BAMBOO_PHP55):$(FULLVERSION_BAMBOO_PHP55) $(NAME_BAMBOO_PHP55):latest
	docker push $(NAME_BAMBOO_PHP55):latest
	docker push $(NAME_BAMBOO_PHP55):$(FULLVERSION_BAMBOO_PHP55)
	docker push $(NAME_BAMBOO_PHP55):$(SHORTVERSION_BAMBOO_PHP55)

clean_bamboo_php55:
	rm -rf build_bamboo-php55

clean_images_bamboo_php55:
	docker rmi $(NAME_BAMBOO_PHP55):latest || true
	docker rmi $(NAME_BAMBOO_PHP55):$(SHORTVERSION_BAMBOO_PHP55) || true
	docker rmi $(NAME_BAMBOO_PHP55):$(FULLVERSION_BAMBOO_PHP55) || true


533
build_bamboo_php56: build_php56
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
	rm -rf build_bamboo-php56
	cp -pR bamboo-remote-agent-php56 build_bamboo-php56
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP56) >> build_bamboo-php56/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP56):$(FULLVERSION_BAMBOO_PHP56) build_bamboo-php56

release_bamboo_php56:
	@if ! docker images $(NAME_BAMBOO_PHP56) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP56); then \
		echo "$(NAME_BAMBOO_PHP56) version $(FULLVERSION_BAMBOO_PHP56) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP56):$(FULLVERSION_BAMBOO_PHP56) $(NAME_BAMBOO_PHP56):$(SHORTVERSION_BAMBOO_PHP56)
	docker tag $(NAME_BAMBOO_PHP56):$(FULLVERSION_BAMBOO_PHP56) $(NAME_BAMBOO_PHP56):latest
	docker push $(NAME_BAMBOO_PHP56):latest
	docker push $(NAME_BAMBOO_PHP56):$(FULLVERSION_BAMBOO_PHP56)
	docker push $(NAME_BAMBOO_PHP56):$(SHORTVERSION_BAMBOO_PHP56)

clean_bamboo_php56:
	rm -rf build_bamboo-php56

clean_images_bamboo_php56:
	docker rmi $(NAME_BAMBOO_PHP56):latest || true
	docker rmi $(NAME_BAMBOO_PHP56):$(SHORTVERSION_BAMBOO_PHP56) || true
	docker rmi $(NAME_BAMBOO_PHP56):$(FULLVERSION_BAMBOO_PHP56) || true


558
build_bamboo_php70: build_php70
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
	rm -rf build_bamboo-php70
	cp -pR bamboo-remote-agent-php70 build_bamboo-php70
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP70) >> build_bamboo-php70/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP70):$(FULLVERSION_BAMBOO_PHP70) build_bamboo-php70

release_bamboo_php70:
	@if ! docker images $(NAME_BAMBOO_PHP70) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP70); then \
		echo "$(NAME_BAMBOO_PHP70) version $(FULLVERSION_BAMBOO_PHP70) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP70):$(FULLVERSION_BAMBOO_PHP70) $(NAME_BAMBOO_PHP70):$(SHORTVERSION_BAMBOO_PHP70)
	docker tag $(NAME_BAMBOO_PHP70):$(FULLVERSION_BAMBOO_PHP70) $(NAME_BAMBOO_PHP70):latest
	docker push $(NAME_BAMBOO_PHP70):latest
	docker push $(NAME_BAMBOO_PHP70):$(FULLVERSION_BAMBOO_PHP70)
	docker push $(NAME_BAMBOO_PHP70):$(SHORTVERSION_BAMBOO_PHP70)

clean_bamboo_php70:
	rm -rf build_bamboo-php70

clean_images_bamboo_php70:
	docker rmi $(NAME_BAMBOO_PHP70):latest || true
	docker rmi $(NAME_BAMBOO_PHP70):$(SHORTVERSION_BAMBOO_PHP70) || true
	docker rmi $(NAME_BAMBOO_PHP70):$(FULLVERSION_BAMBOO_PHP70) || true


583
build_bamboo_php71: build_php71
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
	rm -rf build_bamboo-php71
	cp -pR bamboo-remote-agent-php71 build_bamboo-php71
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP71) >> build_bamboo-php71/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP71):$(FULLVERSION_BAMBOO_PHP71) build_bamboo-php71

release_bamboo_php71:
	@if ! docker images $(NAME_BAMBOO_PHP71) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP71); then \
		echo "$(NAME_BAMBOO_PHP71) version $(FULLVERSION_BAMBOO_PHP71) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP71):$(FULLVERSION_BAMBOO_PHP71) $(NAME_BAMBOO_PHP71):$(SHORTVERSION_BAMBOO_PHP71)
	docker tag $(NAME_BAMBOO_PHP71):$(FULLVERSION_BAMBOO_PHP71) $(NAME_BAMBOO_PHP71):latest
	docker push $(NAME_BAMBOO_PHP71):latest
	docker push $(NAME_BAMBOO_PHP71):$(FULLVERSION_BAMBOO_PHP71)
	docker push $(NAME_BAMBOO_PHP71):$(SHORTVERSION_BAMBOO_PHP71)

clean_bamboo_php71:
	rm -rf build_bamboo-php71

clean_images_bamboo_php71:
	docker rmi $(NAME_BAMBOO_PHP71):latest || true
	docker rmi $(NAME_BAMBOO_PHP71):$(SHORTVERSION_BAMBOO_PHP71) || true
	docker rmi $(NAME_BAMBOO_PHP71):$(FULLVERSION_BAMBOO_PHP71) || true
Christian Kuhn's avatar
Christian Kuhn committed
606
607


608
build_bamboo_php72: build_php72
Christian Kuhn's avatar
Christian Kuhn committed
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
	rm -rf build_bamboo-php72
	cp -pR bamboo-remote-agent-php72 build_bamboo-php72
	echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP72) >> build_bamboo-php72/config/bamboo/bamboo-capabilities.properties
	docker build -t $(NAME_BAMBOO_PHP72):$(FULLVERSION_BAMBOO_PHP72) build_bamboo-php72

release_bamboo_php72:
	@if ! docker images $(NAME_BAMBOO_PHP72) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP72); then \
		echo "$(NAME_BAMBOO_PHP72) version $(FULLVERSION_BAMBOO_PHP72) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BAMBOO_PHP72):$(FULLVERSION_BAMBOO_PHP72) $(NAME_BAMBOO_PHP72):$(SHORTVERSION_BAMBOO_PHP72)
	docker tag $(NAME_BAMBOO_PHP72):$(FULLVERSION_BAMBOO_PHP72) $(NAME_BAMBOO_PHP72):latest
	docker push $(NAME_BAMBOO_PHP72):latest
	docker push $(NAME_BAMBOO_PHP72):$(FULLVERSION_BAMBOO_PHP72)
	docker push $(NAME_BAMBOO_PHP72):$(SHORTVERSION_BAMBOO_PHP72)

clean_bamboo_php72:
	rm -rf build_bamboo-php72

clean_images_bamboo_php72:
	docker rmi $(NAME_BAMBOO_PHP72):latest || true
	docker rmi $(NAME_BAMBOO_PHP72):$(SHORTVERSION_BAMBOO_PHP72) || true
	docker rmi $(NAME_BAMBOO_PHP72):$(FULLVERSION_BAMBOO_PHP72) || true