@@ -44,6 +44,9 @@ ifdef IMAGE_EXTRA_TAG
44
44
IMAGE_BUILD_EXTRA_OPTS += -t $(IMAGE_EXTRA_TAG )
45
45
endif
46
46
47
+ # The name of the kind cluster to use for the "kind-load" target.
48
+ KIND_CLUSTER ?= kind
49
+
47
50
# #@ General
48
51
49
52
# The help target prints out all targets with their descriptions organized
@@ -132,28 +135,42 @@ verify: vet fmt-verify manifests generate ci-lint
132
135
133
136
# Build the container image
134
137
.PHONY : image-local-build
135
- image-local-build :
138
+ image-local-build : # # Build the EPP image using Docker Buildx for local development.
136
139
BUILDER=$(shell $(DOCKER_BUILDX_CMD ) create --use)
137
140
$(MAKE ) image-build PUSH=$(PUSH )
141
+ $(MAKE ) image-build LOAD=$(LOAD )
138
142
$(DOCKER_BUILDX_CMD ) rm $$ BUILDER
139
143
140
144
.PHONY : image-local-push
141
- image-local-push : PUSH=--push
145
+ image-local-push : PUSH=--push # # Build the EPP image for local development and push it to $IMAGE_REPO.
142
146
image-local-push : image-local-build
143
147
148
+ .PHONY : image-local-load
149
+ image-local-load : LOAD=--load # # Build the EPP image for local development and load it in the local Docker registry.
150
+ image-local-load : image-local-build
151
+
144
152
.PHONY : image-build
145
- image-build :
153
+ image-build : # # Build the EPP image using Docker Buildx.
146
154
$(IMAGE_BUILD_CMD ) -t $(IMAGE_TAG ) \
147
155
--platform=$(PLATFORMS ) \
148
156
--build-arg BASE_IMAGE=$(BASE_IMAGE ) \
149
157
--build-arg BUILDER_IMAGE=$(BUILDER_IMAGE ) \
150
158
$(PUSH ) \
159
+ $(LOAD ) \
151
160
$(IMAGE_BUILD_EXTRA_OPTS ) ./
152
161
153
162
.PHONY : image-push
154
- image-push : PUSH=--push
163
+ image-push : PUSH=--push # # Build the EPP image and push it to $IMAGE_REPO.
155
164
image-push : image-build
156
165
166
+ .PHONY : image-load
167
+ image-load : LOAD=--load # # Build the EPP image and load it in the local Docker registry.
168
+ image-load : image-build
169
+
170
+ .PHONY : image-kind
171
+ image-kind : image-build # # Build the EPP image and load it to kind cluster $KIND_CLUSTER ("kind" by default).
172
+ kind load docker-image $(IMAGE_TAG ) --name $(KIND_CLUSTER )
173
+
157
174
# #@ Docs
158
175
159
176
.PHONY : build-docs
0 commit comments