Skip to content

Commit a7c3644

Browse files
authored
Fix image push for Mac and Windows using Docker/Podman Desktop (#3208)
1 parent 80515c5 commit a7c3644

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ scorecard-tests: operator-sdk
332332
.PHONY: container
333333
container: GOOS = linux
334334
container: manager
335-
docker build -t ${IMG} .
335+
docker build --load -t ${IMG} .
336336

337337
# Push the container image, used only for local dev purposes
338338
.PHONY: container-push
@@ -350,17 +350,17 @@ container-operator-opamp-bridge-push:
350350
.PHONY: container-target-allocator
351351
container-target-allocator: GOOS = linux
352352
container-target-allocator: targetallocator
353-
docker build -t ${TARGETALLOCATOR_IMG} cmd/otel-allocator
353+
docker build --load -t ${TARGETALLOCATOR_IMG} cmd/otel-allocator
354354

355355
.PHONY: container-operator-opamp-bridge
356356
container-operator-opamp-bridge: GOOS = linux
357357
container-operator-opamp-bridge: operator-opamp-bridge
358-
docker build -t ${OPERATOROPAMPBRIDGE_IMG} cmd/operator-opamp-bridge
358+
docker build --load -t ${OPERATOROPAMPBRIDGE_IMG} cmd/operator-opamp-bridge
359359

360360
.PHONY: container-bridge-test-server
361361
container-bridge-test-server: GOOS = linux
362362
container-bridge-test-server:
363-
docker build -t ${BRIDGETESTSERVER_IMG} tests/test-e2e-apps/bridge-server
363+
docker build --load -t ${BRIDGETESTSERVER_IMG} tests/test-e2e-apps/bridge-server
364364

365365
.PHONY: start-kind
366366
start-kind: kind
@@ -551,7 +551,7 @@ reset: kustomize operator-sdk manifests
551551
# Build the bundle image, used only for local dev purposes
552552
.PHONY: bundle-build
553553
bundle-build:
554-
docker build -f ./bundle/$(BUNDLE_VARIANT)/bundle.Dockerfile -t $(BUNDLE_IMG) ./bundle/$(BUNDLE_VARIANT)
554+
docker build --load -f ./bundle/$(BUNDLE_VARIANT)/bundle.Dockerfile -t $(BUNDLE_IMG) ./bundle/$(BUNDLE_VARIANT)
555555

556556
.PHONY: bundle-push
557557
bundle-push:

0 commit comments

Comments
 (0)