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