forked from GoogleCloudPlatform/marketplace-k8s-app-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
marketplace.Makefile
109 lines (86 loc) · 3.39 KB
/
marketplace.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ifndef __MARKETPLACE_MAKEFILE__
__MARKETPLACE_MAKEFILE__ := included
include common.Makefile
include var.Makefile
marketplace/build: .build/marketplace/dev \
.build/marketplace/deployer/envsubst \
.build/marketplace/deployer/helm \
.build/marketplace/deployer/helm_onbuild \
.build/marketplace/deployer/helm_tiller \
.build/marketplace/deployer/helm_tiller_onbuild
.build/marketplace: | .build
mkdir -p "$@"
.build/marketplace/dev: \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/dev -type f) \
$(shell find scripts -type f) \
| .build/marketplace
$(call print_target)
docker build \
--tag "gcr.io/cloud-marketplace-tools/k8s/dev:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/dev/Dockerfile \
.
@touch "$@"
.build/marketplace/deployer: | .build/marketplace
mkdir -p "$@"
.build/marketplace/deployer/envsubst: \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/deployer_envsubst_base -type f) \
| .build/marketplace/deployer
$(call print_target)
docker build \
--tag "gcr.io/cloud-marketplace-tools/k8s/deployer_envsubst:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/deployer_envsubst_base/Dockerfile \
.
@touch "$@"
.build/marketplace/deployer/helm: \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/deployer_helm_base -type f) \
| .build/marketplace/deployer
$(call print_target)
docker build \
--tag "gcr.io/cloud-marketplace-tools/k8s/deployer_helm:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/deployer_helm_base/Dockerfile \
.
@touch "$@"
.build/marketplace/deployer/helm_onbuild: \
.build/marketplace/deployer/helm \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/deployer_helm_base/onbuild -type f) \
| .build/marketplace/deployer
$(call print_target)
docker build \
--build-arg FROM="gcr.io/cloud-marketplace-tools/k8s/deployer_helm:$(MARKETPLACE_TOOLS_TAG)" \
--tag "gcr.io/cloud-marketplace-tools/k8s/deployer_helm/onbuild:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/deployer_helm_base/onbuild/Dockerfile \
.
@touch "$@"
.build/marketplace/deployer/helm_tiller: \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/deployer_helm_tiller_base -type f) \
| .build/marketplace/deployer
$(call print_target)
docker build \
--tag "gcr.io/cloud-marketplace-tools/k8s/deployer_helm_tiller:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/deployer_helm_tiller_base/Dockerfile \
.
@touch "$@"
.build/marketplace/deployer/helm_tiller_onbuild: \
.build/marketplace/deployer/helm_tiller \
.build/var/MARKETPLACE_TOOLS_TAG \
$(shell find marketplace/deployer_util -type f) \
$(shell find marketplace/deployer_helm_tiller_base/onbuild -type f) \
| .build/marketplace/deployer
$(call print_target)
docker build \
--build-arg FROM="gcr.io/cloud-marketplace-tools/k8s/deployer_helm_tiller:$(MARKETPLACE_TOOLS_TAG)" \
--tag "gcr.io/cloud-marketplace-tools/k8s/deployer_helm_tiller/onbuild:$(MARKETPLACE_TOOLS_TAG)" \
-f marketplace/deployer_helm_tiller_base/onbuild/Dockerfile \
.
@touch "$@"
endif