-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
58 lines (51 loc) · 1.55 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
DOCKER_IMAGE=dockette/web
templates:
cp -R .templates/ debian-php-70
cp -R .templates/ debian-php-71
cp -R .templates/ debian-php-72
cp -R .templates/ debian-php-73
cp -R .templates/ debian-php-74
cp -R .templates/ debian-php-80
cp -R .templates/ debian-php-81
cp -R .templates/ debian-php-82
_docker-build-%: VERSION=$*
_docker-build-%:
docker buildx build \
--pull \
-t ${DOCKER_IMAGE}:${VERSION} \
./debian-${VERSION}
docker-build-php-70: _docker-build-php-70
docker-build-php-71: _docker-build-php-71
docker-build-php-72: _docker-build-php-72
docker-build-php-73: _docker-build-php-73
docker-build-php-74: _docker-build-php-74
docker-build-php-80: _docker-build-php-80
docker-build-php-81: _docker-build-php-81
docker-build-php-82: _docker-build-php-82
docker-build-php-83: _docker-build-php-83
docker-build-all:
$(MAKE) docker-build-php-70
$(MAKE) docker-build-php-71
$(MAKE) docker-build-php-72
$(MAKE) docker-build-php-73
$(MAKE) docker-build-php-74
$(MAKE) docker-build-php-80
$(MAKE) docker-build-php-81
$(MAKE) docker-build-php-82
$(MAKE) docker-build-php-83
docker-test-all:
$(MAKE) _docker-test-php-70
$(MAKE) _docker-test-php-71
$(MAKE) _docker-test-php-72
$(MAKE) _docker-test-php-73
$(MAKE) _docker-test-php-74
$(MAKE) _docker-test-php-80
$(MAKE) _docker-test-php-81
$(MAKE) _docker-test-php-82
$(MAKE) _docker-test-php-83
_docker-test-%: VERSION=$*
_docker-test-%:
docker run --rm -d --name dockette-web-${VERSION} -p 8000:80 ${DOCKER_IMAGE}:${VERSION}
sleep 5
curl -f -Li localhost:8000
docker stop dockette-web-${VERSION}