Makefile 13 KB
Newer Older
1
NAME_BASEIMAGE = typo3gmbh/baseimage
2
MAJOR_BASEIMAGE=3
3
MINOR_BASEIMAGE=0
Christian Kuhn's avatar
Christian Kuhn committed
4
PATCHLEVEL_BASEIMAGE=13
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
Christian Kuhn's avatar
Christian Kuhn committed
10
MAJOR_PHP53=3
11
MINOR_PHP53=0
Christian Kuhn's avatar
Christian Kuhn committed
12
PATCHLEVEL_PHP53=13
13
14
15
16
FULLVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53).$(PATCHLEVEL_PHP53)
SHORTVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53)

NAME_PHP54 = typo3gmbh/php54
Christian Kuhn's avatar
Christian Kuhn committed
17
MAJOR_PHP54=3
18
MINOR_PHP54=0
Christian Kuhn's avatar
Christian Kuhn committed
19
PATCHLEVEL_PHP54=13
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
Christian Kuhn's avatar
Christian Kuhn committed
24
MAJOR_PHP55=3
25
MINOR_PHP55=0
Christian Kuhn's avatar
Christian Kuhn committed
26
PATCHLEVEL_PHP55=14
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
Christian Kuhn's avatar
Christian Kuhn committed
31
MAJOR_PHP56=3
Christian Kuhn's avatar
Christian Kuhn committed
32
MINOR_PHP56=0
Christian Kuhn's avatar
Christian Kuhn committed
33
PATCHLEVEL_PHP56=14
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
Christian Kuhn's avatar
Christian Kuhn committed
38
MAJOR_PHP70=3
Christian Kuhn's avatar
Christian Kuhn committed
39
MINOR_PHP70=0
Christian Kuhn's avatar
Christian Kuhn committed
40
PATCHLEVEL_PHP70=14
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
Christian Kuhn's avatar
Christian Kuhn committed
45
MAJOR_PHP71=3
Christian Kuhn's avatar
Christian Kuhn committed
46
MINOR_PHP71=0
Christian Kuhn's avatar
Christian Kuhn committed
47
PATCHLEVEL_PHP71=13
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=3
Christian Kuhn's avatar
Christian Kuhn committed
53
MINOR_PHP72=0
Christian Kuhn's avatar
Christian Kuhn committed
54
PATCHLEVEL_PHP72=13
Christian Kuhn's avatar
Christian Kuhn committed
55
56
57
FULLVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72).$(PATCHLEVEL_PHP72)
SHORTVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72)

58
59
60
NAME_PHP73 = typo3gmbh/php73
MAJOR_PHP73=3
MINOR_PHP73=0
Susanne Moog's avatar
Susanne Moog committed
61
PATCHLEVEL_PHP73=9
62
63
64
FULLVERSION_PHP73=$(MAJOR_PHP73).$(MINOR_PHP73).$(PATCHLEVEL_PHP73)
SHORTVERSION_PHP73=$(MAJOR_PHP73).$(MINOR_PHP73)

Susanne Moog's avatar
Susanne Moog committed
65
NAME_JS = typo3gmbh/js
66
MAJOR_JS=2
Susanne Moog's avatar
Susanne Moog committed
67
68
69
70
MINOR_JS=0
PATCHLEVEL_JS=0
FULLVERSION_JS=$(MAJOR_JS).$(MINOR_JS).$(PATCHLEVEL_JS)
SHORTVERSION_JS=$(MAJOR_JS).$(MINOR_JS)
Christian Kuhn's avatar
Christian Kuhn committed
71

72
73
74
NAME_BAMBOO = typo3gmbh/bamboo-remote-agent
MAJOR_BAMBOO=1
MINOR_BAMBOO=0
Christian Kuhn's avatar
Christian Kuhn committed
75
PATCHLEVEL_BAMBOO=12
76
77
FULLVERSION_BAMBOO=$(MAJOR_BAMBOO).$(MINOR_BAMBOO).$(PATCHLEVEL_BAMBOO)
SHORTVERSION_BAMBOO=$(MAJOR_BAMBOO).$(MINOR_BAMBOO)
Christian Kuhn's avatar
Christian Kuhn committed
78

79

Christian Kuhn's avatar
Christian Kuhn committed
80

81
82
83
84
.PHONY: \
	all \
	build \
	build_baseimage \
85
86
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
87
88
89
90
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
91
	build_php72 \
92
	build_php73 \
Susanne Moog's avatar
Susanne Moog committed
93
	build_js \
94
	build_bamboo \
95
96
	release \
	release_baseimage \
97
98
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
99
100
101
102
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
103
	release_php72 \
104
	release_php73 \
Susanne Moog's avatar
Susanne Moog committed
105
	release_js \
106
	release_bamboo \
107
108
	clean \
	clean_baseimage \
109
110
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
111
112
113
114
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
115
	clean_php72 \
116
	clean_php73 \
Susanne Moog's avatar
Susanne Moog committed
117
	clean_js \
118
	clean_bamboo \
119
120
	clean_images \
	clean_images_baseimage \
121
122
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
123
124
125
126
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
127
	clean_images_php72 \
128
	clean_images_php73 \
Susanne Moog's avatar
Susanne Moog committed
129
	clean_images_js \
130
	clean_images_bamboo
131
132


Christian Kuhn's avatar
Christian Kuhn committed
133

134
135
136
137
138
all: \
	build

build: \
	build_baseimage \
139
	build_php \
Susanne Moog's avatar
Susanne Moog committed
140
141
	build_bamboo \
	build_js
142
143

build_php: \
144
145
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
146
147
148
149
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
150
151
	build_php72 \
	build_php73
152

153
154
release: \
	release_baseimage \
155
	release_php \
Susanne Moog's avatar
Susanne Moog committed
156
157
	release_bamboo \
	release_js
158
159

release_php: \
160
161
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
162
163
164
165
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
166
167
	release_php72 \
	release_php73
168

169
170
clean: \
	clean_baseimage \
171
172
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
173
174
175
176
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
177
	clean_php72 \
178
	clean_php73 \
Susanne Moog's avatar
Susanne Moog committed
179
180
	clean_bamboo \
	clean_js
181
182
183
184


clean_images: \
	clean_images_baseimage \
185
186
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
187
188
189
190
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
191
	clean_images_php72 \
192
	clean_images_php73 \
Susanne Moog's avatar
Susanne Moog committed
193
194
	clean_images_bamboo \
	clean_js
195
196
197
198
199
200


build_baseimage:
	rm -rf build_baseimage
	cp -pR baseimage build_baseimage
	docker build -t $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) build_baseimage
201
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220

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
221

222
build_php53: build_baseimage
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
	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


246
build_php54: build_baseimage
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
	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


270
build_php55: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
	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


294
build_php56: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
	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


318
build_php70: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
	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


342
build_php71: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
	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


366
build_php72: build_baseimage
Christian Kuhn's avatar
Christian Kuhn committed
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
	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


390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
build_php73: build_baseimage
	rm -rf build_php73
	cp -pR php73 build_php73
	docker build -t $(NAME_PHP73):$(FULLVERSION_PHP73) build_php73
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(NAME_PHP73):$(SHORTVERSION_PHP73)

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

clean_php73:
	rm -rf build_php73

clean_images_php73:
	docker rmi $(NAME_PHP73):latest || true
	docker rmi $(NAME_PHP73):$(SHORTVERSION_PHP73) || true
	docker rmi $(NAME_PHP73):$(FULLVERSION_PHP73) || true


Christian Kuhn's avatar
Christian Kuhn committed
414

415
416
417
418
build_bamboo: build_baseimage
	rm -rf build_bamboo
	cp -pR bamboo-remote-agent build_bamboo
	docker build -t $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) build_bamboo
419

420
421
422
release_bamboo:
	@if ! docker images $(NAME_BAMBOO) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO); then \
		echo "$(NAME_BAMBOO) version $(FULLVERSION_BAMBOO) is not yet built. Please run 'make build'"; false; \
Christian Kuhn's avatar
Christian Kuhn committed
423
	fi
424
425
426
427
428
429
430
431
432
433
434
435
436
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(NAME_BAMBOO):latest
	docker push $(NAME_BAMBOO):latest
	docker push $(NAME_BAMBOO):$(FULLVERSION_BAMBOO)
	docker push $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)

clean_bamboo:
	rm -rf build_bamboo

clean_images_bamboo:
	docker rmi $(NAME_BAMBOO):latest || true
	docker rmi $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO) || true
	docker rmi $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) || true
Susanne Moog's avatar
Susanne Moog committed
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461



build_js:
	rm -rf build_js
	cp -pR js build_js
	docker build -t $(NAME_JS):$(FULLVERSION_JS) build_js

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

clean_js:
	rm -rf build_js

clean_images_js:
	docker rmi $(NAME_JS):latest || true
	docker rmi $(NAME_JS):$(SHORTVERSION_JS) || true
	docker rmi $(NAME_JS):$(FULLVERSION_JS) || true