Skip to content

Commit 9c367f9

Browse files
committed
Add makefile and cloudbuild file to build and push lora-syncer
Signed-off-by: Kunjan <[email protected]>
1 parent 78b9bfe commit 9c367f9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Makefile

+25
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,31 @@ image-build: ## Build the EPP image using Docker Buildx.
167167
image-push: PUSH=--push ## Build the EPP image and push it to $IMAGE_REPO.
168168
image-push: image-build
169169

170+
##@ Lora Syncer
171+
172+
.PHONY: syncer-image-local-build
173+
syncer-image-local-build:
174+
BUILDER=$(shell $(DOCKER_BUILDX_CMD) create --use)
175+
$(MAKE) image-build PUSH=$(PUSH)
176+
$(DOCKER_BUILDX_CMD) rm $$BUILDER
177+
178+
.PHONY: syncer-image-local-push
179+
syncer-image-local-push: PUSH=--push
180+
syncer-image-local-push: syncer-image-local-build
181+
182+
.PHONY: syncer-image-build
183+
syncer-image-build:
184+
$ cd $(CURDIR)/tools/dynamic-lora-sidecar && $(IMAGE_BUILD_CMD) -t $(SYNCER_IMAGE_TAG) \
185+
--platform=$(PLATFORMS) \
186+
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
187+
--build-arg BUILDER_IMAGE=$(BUILDER_IMAGE) \
188+
$(PUSH) \
189+
$(IMAGE_BUILD_EXTRA_OPTS) ./
190+
191+
.PHONY: syncer-image-push
192+
syncer-image-push: PUSH=--push
193+
syncer-image-push: syncer-image-build
194+
170195
.PHONY: image-load
171196
image-load: LOAD=--load ## Build the EPP image and load it in the local Docker registry.
172197
image-load: image-build

0 commit comments

Comments
 (0)