forked from RobLoach/docker-composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (63 loc) · 2.75 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
build: build-1.0 build-1.1 build-1.2 build-master
test: build test-1.0 test-1.1 test-1.2 test-master
build-base:
docker build -t composer/composer:base base
docker build -t composer/composer:base-alpine base/alpine
docker build -t composer/composer:base-php5 base/php5
docker build -t composer/composer:base-php5-alpine base/php5-alpine
build-master: build-base
docker build -t composer/composer:master master
docker build -t composer/composer:master-alpine master/alpine
docker build -t composer/composer:master-php5 master/php5
docker build -t composer/composer:master-php5-alpine master/php5-alpine
test-master:
@echo -n "master\t\t\t"
@docker run composer/composer:master --version --no-ansi
@echo -n "master-alpine\t\t"
@docker run composer/composer:master-alpine --version --no-ansi
@echo -n "master-php5\t\t"
@docker run composer/composer:master-php5 --version --no-ansi
@echo -n "master-php5-alpine\t"
@docker run composer/composer:master-php5-alpine --version --no-ansi
build-1.0: build-base
docker build -t composer/composer:1.0 1.0
docker build -t composer/composer:1.0-alpine 1.0/alpine
docker build -t composer/composer:1.0-php5 1.0/php5
docker build -t composer/composer:1.0-php5-alpine 1.0/php5-alpine
test-1.0:
@echo -n "1.0\t\t\t"
@docker run composer/composer:1.0 --version --no-ansi
@echo -n "1.0-alpine\t\t"
@docker run composer/composer:1.0-alpine --version --no-ansi
@echo -n "1.0-php5\t\t"
@docker run composer/composer:1.0-php5 --version --no-ansi
@echo -n "1.0-php5-alpine\t\t"
@docker run composer/composer:1.0-php5-alpine --version --no-ansi
build-1.1: build-base
docker build -t composer/composer:1.1 1.1
docker build -t composer/composer:1.1-alpine 1.1/alpine
docker build -t composer/composer:1.1-php5 1.1/php5
docker build -t composer/composer:1.1-php5-alpine 1.1/php5-alpine
test-1.1:
@echo -n "1.1\t\t\t"
@docker run composer/composer:1.1 --version --no-ansi
@echo -n "1.1-alpine\t\t"
@docker run composer/composer:1.1-alpine --version --no-ansi
@echo -n "1.1-php5\t\t"
@docker run composer/composer:1.1-php5 --version --no-ansi
@echo -n "1.1-php5-alpine\t\t"
@docker run composer/composer:1.1-php5-alpine --version --no-ansi
build-1.2: build-base
docker build -t composer/composer:1.2 1.2
docker build -t composer/composer:1.2-alpine 1.2/alpine
docker build -t composer/composer:1.2-php5 1.2/php5
docker build -t composer/composer:1.2-php5-alpine 1.2/php5-alpine
test-1.2:
@echo -n "1.2\t\t\t"
@docker run composer/composer:1.2 --version --no-ansi
@echo -n "1.2-alpine\t\t"
@docker run composer/composer:1.2-alpine --version --no-ansi
@echo -n "1.2-php5\t\t"
@docker run composer/composer:1.2-php5 --version --no-ansi
@echo -n "1.2-php5-alpine\t\t"
@docker run composer/composer:1.2-php5-alpine --version --no-ansi