Skip to content

Docker image for ppc64le arch - #1930

Closed
mkumatag wants to merge 1 commit into
helm:masterfrom
mkumatag:ppc64le_docker
Closed

mkumatag wants to merge 1 commit into
helm:masterfrom
mkumatag:ppc64le_docker

Conversation

@mkumatag

@mkumatag mkumatag commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

This PR is for supporting docker image for ppc64le platform.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 9, 2017
@mkumatag

mkumatag commented Feb 9, 2017

Copy link
Copy Markdown
Contributor Author

/cc @adamreese @technosophos

Comment thread Makefile
docker-binary: GOFLAGS += -a -installsuffix cgo
docker-binary:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller
GOOS=linux GOARCH=$(ARCH) CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should GOARCH always be host arch when building for docker?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.. as docker cross building is not supported, we have to be on target host arch to build docker image..

@bacongobbler bacongobbler Aug 7, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4252 (comment) demonstrates that there's a limitation of compiling tiller as arm64, but this PR works around that limitation by using a Dockerfile specifically designed for pcc64le architectures. While nice for ppc64le users, this doesn't address the problem for arm64 or i386 users.

I think we need to make a conditional check for what architecture we are running under (like on line 66), but only allow amd64 and pcc64le, otherwise users compiling tiller on arm64 are going to have a bad time.

I'd follow up with other community members and see if others have found a workable solution that handles this in a generic way.

@technosophos

technosophos commented Feb 10, 2017 •

Copy link
Copy Markdown
Member

This and #1930 are raising the concern that maybe we need to revisit how the entire canary/release build process is working. The backpressure caused in CI by increasing the build time is having a negative effect on handling regular pull requests (since the build queue keeps getting longer and longer).

If we can offload some of the build pressure by making a CI/CD change then we can add things like dockerized builds for lots of platforms, and do so without increasing the build wait time to :45.

So let's hold off on merging this and #1929 until after 2.2.0 (so nobody gets distracted in these last few days), and then we can tackle the CI/CD situation without the risk of stalling the Feb. 14 release date.

@technosophos technosophos added this to the 2.3.0 milestone Feb 10, 2017
@thomastaylor312

Copy link
Copy Markdown
Contributor

@technosophos Just circling back to this. Maybe we should talk about the CI/CD stuff in one of the next public standup meetings

@thomastaylor312

Copy link
Copy Markdown
Contributor

Bumping this back to Upcoming - Minor. @technosophos we should have a conversation about whether or not this is possible now

@fejta-bot

Copy link
Copy Markdown

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@mkumatag

mkumatag commented Jan 7, 2018

Copy link
Copy Markdown
Contributor Author

/remove-lifecycle stale

@thomastaylor312

Copy link
Copy Markdown
Contributor

/lifecycle frozen

@thomastaylor312

Copy link
Copy Markdown
Contributor

Side note, @technosophos we really do need to discuss again if this would be ok to do now. Maybe @adamreese has some thoughts too

@bacongobbler

Copy link
Copy Markdown
Member

Let's bring this up in the next dev call.

@bacongobbler bacongobbler left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kubernetes clusters run on ppc64le architectures? I don't even think kubernetes itself supports running on ppc64le at this point. kubernetes/kubernetes#38067

To be clear, I'm all for enabling all architecture types. I just want to be cautious about adding support for running Helm on alternative chip architectures that kubernetes core is unprepared to support.

@bacongobbler

Copy link
Copy Markdown
Member

@mkumatag I see you're working on this upstream. Any idea on a general timeline when upstream should be able to support ppc64le architectures? :)

@mkumatag

mkumatag commented Apr 26, 2018 •

Copy link
Copy Markdown
Contributor Author

What kubernetes clusters run on ppc64le architectures? I don't even think kubernetes itself supports running on ppc64le at this point. kubernetes/kubernetes#38067

To be clear, I'm all for enabling all architecture types. I just want to be cautious about adding support for running Helm on alternative chip architectures that kubernetes core is unprepared to support.

kubernetes/kubernetes#38067 issue is ubmrella issue which is pointing to lot of thing. Currently kubernetes is building binaries for most of the architectures and works, you can find bits @ https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.11.md#v1110-alpha1. And even we run tests on ppc64le platform and published in test-grid.

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sounds like @alicefr is interested in working on making it possible to add support for various architectures, not just arm64 or ppc64le. It might be good to get in contact with her and see if she's interested in collaborating. :)

Comment thread rootfs/Dockerfile.ppc64le
@@ -0,0 +1,21 @@
# Copyright 2017 The Kubernetes Authors.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header will have to change to "Copyright The Helm Authors" as of #4202.

Comment thread Makefile
docker-binary: GOFLAGS += -a -installsuffix cgo
docker-binary:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller
GOOS=linux GOARCH=$(ARCH) CGO_ENABLED=0 $(GO) build -o $(BINDIR)/tiller $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller

@bacongobbler bacongobbler Aug 7, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4252 (comment) demonstrates that there's a limitation of compiling tiller as arm64, but this PR works around that limitation by using a Dockerfile specifically designed for pcc64le architectures. While nice for ppc64le users, this doesn't address the problem for arm64 or i386 users.

I think we need to make a conditional check for what architecture we are running under (like on line 66), but only allow amd64 and pcc64le, otherwise users compiling tiller on arm64 are going to have a bad time.

I'd follow up with other community members and see if others have found a workable solution that handles this in a generic way.

@alicefr

alicefr commented Aug 8, 2018

Copy link
Copy Markdown

hi everybody! Please see my answer. I'm interested in participating to the discussion!

@bacongobbler bacongobbler added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/small labels Mar 5, 2019
@bacongobbler

Copy link
Copy Markdown
Member

closing as irrelevant for Helm 3 as Tiller is being removed, and therefore there's no need to build a ppc64le docker image. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. feature keep open size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants