Repository navigation
Add ARM target for binaries - #1722
Conversation
```
$ make build-cross dist VERSION=v2.2.0
CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='darwin/amd64 linux/amd64 linux/386 windows/amd64 linux/arm' -tags '' -ldflags ' -X k8s.io/helm/pkg/version
.Version=v2.1.0 -X k8s.io/helm/pkg/version.GitCommit=b3d812b3462e5ac8192f656c7098b1b54f29ffa3 -X k8s.io/helm/pkg/version.GitTreeState=dirty -extldflags "-static"' k8s.io/helm/cm
d/helm
Number of parallel builds: 3
--> darwin/amd64: k8s.io/helm/cmd/helm
--> linux/amd64: k8s.io/helm/cmd/helm
--> windows/amd64: k8s.io/helm/cmd/helm
--> linux/386: k8s.io/helm/cmd/helm
--> linux/arm: k8s.io/helm/cmd/helm
```
```
$ ls -a _dist/
. darwin-amd64 helm-v2.2.0-linux-386.tar.gz helm-v2.2.0-linux-arm.tar.gz linux-386 linux-arm
.. helm-v2.2.0-darwin-amd64.tar.gz helm-v2.2.0-linux-amd64.tar.gz helm-v2.2.0-windows-amd64.tar.gz linux-amd64 windows-amd64
```
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.
DetailsIf you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository. |
|
I signed it! |
| build-cross: LDFLAGS += -extldflags "-static" | ||
| build-cross: | ||
| CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/helm | ||
| CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller |
There was a problem hiding this comment.
I would rather not do this for the following reasons:
- it vastly inflates the size of the package -- sometimes over double the original package size
- the only use case for running Tiller locally (rather than in-cluster) is (as far as I know) development, and in that case you tend to build from source.
- I think it's confusing for users to find a binary
tillerfile installed locally, when it's not intended to be run locally
There was a problem hiding this comment.
Perhaps another thing we could do instead would be to add Tiller to its own package for those who need a prebuilt binary.
There was a problem hiding this comment.
Hi,
Actually I needed an official ARM binary to build a Docker image for Raspberry. I change the makefile to creates 2 packages (one for helm and one for tiller).
Split helm and tiller packages.
|
It looks like this change would require an explicit binary to build. That would probably break our release process. Maybe set |
Uh oh!
There was an error while loading. Please reload this page.