There was an error while loading. Please reload this page.
1 parent 169ea28 commit a431ee2Copy full SHA for a431ee2
Makefile
@@ -633,6 +633,14 @@ loki-debug-image: ## build the loki debug docker image
633
loki-push: loki-image-cross
634
$(call push-image,loki)
635
636
+# Loki local images
637
+# Default architecture for local builds
638
+LOCAL_ARCH ?= amd64
639
+
640
+# Loki local image
641
+loki-local-image: ## build the loki docker image locally (set LOCAL_ARCH=arm64 for arm64)
642
+ $(OCI_BUILD) --load --platform=linux/$(LOCAL_ARCH) -t $(LOKI_IMAGE) -f cmd/loki/Dockerfile .
643
644
# Canary image
645
loki-canary-image: ## build the canary docker image
646
$(OCI_BUILD) -t $(LOKI_CANARY_IMAGE) -f cmd/loki-canary/Dockerfile .
0 commit comments