-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
52 lines (42 loc) · 1.42 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
CI_REGISTRY_IMAGE ?= local
UPSTREAM_REF_NAME ?= 5.7
UPSTREAM_COMMIT_SHA ?= 00000000
PHP_VERSION ?= 7.4
COMPOSER_VERSION ?= 2
NODE_VERSION ?= 18
running\:%:
node "twig.js" running/Dockerfile.twig "{\"imageName\": \"$@\"}" > running/Dockerfile
docker build --progress=plain \
-t "ghcr.io/shopware5/docker-images-testing/$@" \
-f ./running/Dockerfile ./running/
--progress=plain
zip\:%:
node "twig.js" Zip_Dockerfile.twig "{\"imageName\": \"$@\"}" > Dockerfile
docker build --no-cache --progress=plain \
-t "ghcr.io/shopware5/docker-images-testing/$@" \
-f ./Dockerfile ./
--progress=plain
latest\:%:
node "twig.js" Latest_Dockerfile.twig "{\"imageName\": \"$@\"}" > Dockerfile
docker build --no-cache --progress=plain \
-t "ghcr.io/shopware5/docker-images-testing/$@" \
-f ./Dockerfile ./
--progress=plain
install\:%:
node "twig.js" Install_Dockerfile.twig "{\"imageName\": \"$@\"}" > Dockerfile
docker build \
-t "ghcr.io/shopware5/docker-images-testing/$@" \
-f ./Dockerfile ./
--progress=plain
test\:%:
docker run -d -p 80:80 "ghcr.io/shopware5/docker-images-testing/install:$*"
sleep 15s
curl http://localhost | grep "shopware"
test-zip\:%:
docker run -d -p 80:80 "ghcr.io/shopware5/docker-images-testing/zip:$*"
sleep 15s
curl http://localhost | grep "shopware"
test-latest\:%:
docker run -d -p 80:80 "ghcr.io/shopware5/docker-images-testing/latest:$*"
sleep 15s
curl http://localhost | grep "shopware"