Skip to content

Commit

Permalink
Makefile fixed for M1 Macs (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0taperk0t committed Oct 3, 2023
1 parent f9d0fdc commit 6f64ca7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ REGISTRY ?= kanisterio
# Which architecture to build - see $(ALL_ARCH) for options.
ARCH ?= amd64

# Which platform to build.
PLATFORM ?= linux/$(ARCH)

# This version-strategy uses git tags to set the version string
VERSION := $(shell git describe --tags --always --dirty)
#
Expand Down Expand Up @@ -119,6 +122,7 @@ bin/$(ARCH)/$(BIN):
shell: build-dirs
@echo "launching a shell in the containerized build environment"
@docker run \
--platform $(PLATFORM) \
-ti \
--rm \
--privileged \
Expand Down Expand Up @@ -202,6 +206,7 @@ docs:
ifeq ($(DOCKER_BUILD),"true")
@echo "running DOCS_CMD in the containerized build environment"
@docker run \
--platform $(PLATFORM) \
--entrypoint '' \
--rm \
-v "$(PWD):/repo" \
Expand All @@ -223,6 +228,7 @@ crd_docs:
ifeq ($(DOCKER_BUILD),"true")
@echo "running API_DOCS_CMD in the containerized build environment"
@docker run \
--platform $(PLATFORM) \
--entrypoint '' \
--rm \
-v "$(PWD):/repo" \
Expand All @@ -241,6 +247,7 @@ run: build-dirs
ifeq ($(DOCKER_BUILD),"true")
@echo "running CMD in the containerized build environment"
@docker run \
--platform $(PLATFORM) \
--rm \
--net host \
-e GITHUB_TOKEN=$(GITHUB_TOKEN) \
Expand Down

0 comments on commit 6f64ca7

Please sign in to comment.