forked from magento/magento-cloud-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
91 lines (72 loc) · 1.82 KB
/
docker-bake.hcl
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
variable "TAG" {
default = "latest"
}
variable "MCD_VERSION" {
default = "develop"
}
group "default" {
targets = ["php-cli", "php-fpm", "nginx", "mailhog", "varnish"]
}
group "default-xplat" {
targets = ["php-cli-xplat", "php-fpm-xplat", "nginx-xplat", "mailhog-xplat", "varnish-xplat"]
}
target "xplat" {
platforms = [
"linux/amd64",
"linux/arm64"
]
}
// our targets
target "php-cli" {
context = "images/php"
target = "php-cli"
tags = ["docker.io/pmetpublic/magento-cloud-docker-php:8.2-cli-${MCD_VERSION}-${TAG}"]
}
target "php-fpm" {
context = "images/php"
target = "php-fpm"
tags = ["docker.io/pmetpublic/magento-cloud-docker-php:8.2-fpm-${MCD_VERSION}-${TAG}"]
}
target "nginx" {
context = "images/nginx/1.19"
tags = ["docker.io/pmetpublic/magento-cloud-docker-nginx:1.19-${MCD_VERSION}-${TAG}"]
}
target "mailhog" {
context = "images/mailhog/1.0"
tags = ["docker.io/pmetpublic/magento-cloud-docker-mailhog:1.0-${MCD_VERSION}-${TAG}"]
}
target "varnish" {
context = "images/varnish/6.6"
tags = ["docker.io/pmetpublic/magento-cloud-docker-varnish:6.6-${MCD_VERSION}-${TAG}"]
}
target "php-cli-xplat" {
inherits = ["php-cli", "xplat"]
}
target "php-fpm-xplat" {
inherits = ["php-fpm", "xplat"]
}
target "nginx-xplat" {
inherits = ["nginx", "xplat"]
}
target "mailhog-xplat" {
inherits = ["mailhog", "xplat"]
}
target "varnish-xplat" {
inherits = ["varnish", "xplat"]
}
// for comparative purposes only
// product teams images
target "php-cli-product" {
context = "images/php/8.2-cli"
tags = ["docker.io/magento/php:8.2-cli"]
}
target "php-fpm-product" {
context = "images/php/8.2-fpm"
tags = ["docker.io/magento/php:8.2-fpm"]
}
target "php-cli-product-xplat" {
inherits = ["php-cli-product", "xplat"]
}
target "php-fpm-product-xplat" {
inherits = ["php-fpm-product", "xplat"]
}