-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (41 loc) · 2.22 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
.PHONY: build show clean push phpv rebuild check php
GITREV=$(shell git describe --always --dirty)
build: php
check: Dockerfile docker-php-entrypoint docker-php-ext-configure docker-php-ext-enable docker-php-ext-install
@docker ps >/dev/null
rebuild: clean build
php: check ci1 ci2 ci3 ci4 ci5 ci6 ci7 ci8 ci9 ci10 ci11 ci12 ci13 ci14 ci15 ci16
ci1: 5.2.4 5.2.5 5.2.6 5.2.8 5.2.9 5.2.10 5.2.11 5.2.12 5.2.13 5.2.14
ci2: 5.2.15 5.2.16 5.2.17 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6
ci3: 5.3.7 5.3.8 5.3.9 5.3.10 5.3.11 5.3.12 5.3.13 5.3.14 5.3.15 5.3.16
ci4: 5.3.17 5.3.18 5.3.19 5.3.20 5.3.21 5.3.22 5.3.23 5.3.24 5.3.25 5.3.26
ci5: 5.3.27 5.3.28 5.3.29 5.4.0 5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6
ci6: 5.4.7 5.4.8 5.4.9 5.4.10 5.4.11 5.4.12 5.4.13 5.4.14 5.4.15 5.4.16
ci7: 5.4.17 5.4.18 5.4.19 5.4.20 5.4.21 5.4.22 5.4.23 5.4.24 5.4.25 5.4.26
ci8: 5.4.27 5.4.28 5.4.29 5.4.30 5.4.31 5.4.32 5.4.33 5.4.34 5.4.35 5.4.36
ci9: 5.4.37 5.4.38 5.4.39 5.4.40 5.4.41 5.4.42 5.4.43 5.4.44 5.4.45 5.5.0
ci10: 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.5.9 5.5.10
ci11: 5.5.11 5.5.12 5.5.13 5.5.14 5.5.15 5.5.16 5.5.17 5.5.18 5.5.19 5.5.20
ci12: 5.5.21 5.5.22 5.5.23 5.5.24 5.5.25 5.5.26 5.5.27 5.5.28 5.5.29 5.5.30
ci13: 5.5.31 5.5.32 5.5.33 5.5.34 5.5.35 5.5.36 5.5.37 5.5.38 5.6.0 5.6.1
ci14: 5.6.2 5.6.3 5.6.4 5.6.5 5.6.6 5.6.7 5.6.8 5.6.9 5.6.10 5.6.11 5.6.12
ci15: 5.6.13 5.6.14 5.6.15 5.6.16 5.6.17 5.6.18 5.6.19 5.6.20 5.6.21 5.6.22
ci16: 5.6.23 5.6.24 5.6.25 5.6.26 5.6.27 5.6.28 5.6.29 5.6.30
show:
@docker images -a t4cc0re/legacy-php; exit 0
clean:
@rm -f ./5.*
@docker rmi --force `docker images -q t4cc0re/legacy-php` > /dev/null; exit 0
push:
@docker push t4cc0re/legacy-php
# >= 5.2.4
5.%: check
@echo +++ Building $@-$(GITREV)...
@docker build -t t4cc0re/legacy-php:$@-$(GITREV) --pull --no-cache --build-arg PHP_VERSION="$@" . | tee [email protected]
@docker tag t4cc0re/legacy-php:$@-$(GITREV) t4cc0re/legacy-php:$@
@docker tag t4cc0re/legacy-php:$@-$(GITREV) t4cc0re/legacy-php:$@-cli
@touch $@
phpv:
for image in `docker images t4cc0re/legacy-php --format '{{.Repository}}:{{.Tag}}'`; do echo -e "------------\n$${image}" 2>&1; docker run -it $${image} php -v; done
test:
@set -o pipefail make phpv | grep "Unable to load" && exit 1 || exit 0;