Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #29 from carlosedp/ppc64le
Browse files Browse the repository at this point in the history
Add image build for ppc64le architecture
  • Loading branch information
k8s-ci-robot committed Mar 30, 2020
2 parents 78e169e + 9ea180e commit 33ef516
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ go build \
-ldflags '-extldflags "-static"' \
-o /metrics-sidecar github.com/kubernetes-sigs/dashboard-metrics-scraper

elif [[ "$GOARCH" = "ppc64le" ]]; then

echo "Detected ppc64le. Setting additional variables.";

apt-get install -y gcc-powerpc64le-linux-gnu

env CC=powerpc64le-linux-gnu-gcc \
CGO_ENABLED=1 GOOS=linux \
go build \
-installsuffix 'static' \
-ldflags '-extldflags "-static"' \
-o /metrics-sidecar github.com/kubernetes-sigs/dashboard-metrics-scraper

elif [[ "$GOARCH" = "s390x" ]]; then

echo "Detected s390x. Setting additional variables.";
Expand Down

0 comments on commit 33ef516

Please sign in to comment.