Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added required changes to build in mac arm #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ PROTOC_FILES := pkg/apis/v1/api.proto
PROTOC_FILES += pkg/apis/v1/common.proto
endif

ifdef macBuild
PLATFORM_FLAG = --platform=linux/amd64
else
PLATFORM_FLAG =
endif

PROTOC_ZIP := protoc-3.14.0-linux-x86_64.zip

GO111MODULE := on
Expand All @@ -20,7 +26,7 @@ GO111MODULE := on
all: docker-build-proto

docker-build-proto:
docker build . -t px-backup-api-build
docker build $(PLATFORM_FLAG) . -t px-backup-api-build
docker run --rm -v ${PWD}:/go/portworx/px-backup-api px-backup-api-build /bin/bash -c "make proto pretest"

start-build-container:
Expand Down
Loading