-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (58 loc) · 1.32 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
project_name = $(notdir $(CURDIR))
ifndef php
override php = 8.1 # default latest image PHP version
endif
start:
PHP_VERSION=$(php) \
docker-compose \
-p ${project_name} \
-f compose/docker-compose.yml \
up \
-d
debug:
PHP_VERSION=$(php) \
docker-compose \
-p ${project_name} \
-f compose/docker-compose.yml \
-f compose/docker-compose-xdebug.yml \
up \
-d
stop:
docker-compose \
-p ${project_name} \
-f compose/docker-compose.yml \
stop
build:
docker build -t greg0/php-runtime-env:$(image) images/$(image)
push: build
docker push greg0/php-runtime-env:$(image)
build-all:
make build image=nginx
make build image=php5.6
make build image=php5.6-dev
make build image=php7.2
make build image=php7.2-dev
make build image=php7.3
make build image=php7.3-dev
make build image=php7.4
make build image=php7.4-dev
make build image=php8.0
make build image=php8.0-dev
make build image=php8.1
make build image=php8.1-dev
make build image=php8.2
make build image=php8.2-dev
push-all:
make push image=nginx
make push image=php5.6
make push image=php5.6-dev
make push image=php7.2
make push image=php7.2-dev
make push image=php7.3
make push image=php7.3-dev
make push image=php7.4
make push image=php7.4-dev
make push image=php8.0
make push image=php8.0-dev
make push image=php8.2
make push image=php8.2-dev