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

Is that possible to build one binary file for all linux distributions? #23

Open
LinuxSuRen opened this issue Sep 9, 2021 · 4 comments

Comments

@LinuxSuRen
Copy link
Contributor

LinuxSuRen commented Sep 9, 2021

image

See also LinuxSuRen/hd-home#54

I want to let hd be able to install kubeplay. It likes this: hd install kubeplay or hd install k8sli/kubeplay.

@LinuxSuRen
Copy link
Contributor Author

I see. it does not have an executable binary file.

@muzi502
Copy link
Member

muzi502 commented Sep 9, 2021

I see. it does not have an executable binary file.

I tried to use makeself to build an an executable binary file, such as tkestack. But I felt it was inappropriate so so I gave up.

Build an all-in-one binary file maybe is a good solution and worth discussing 😃

@muzi502 muzi502 reopened this Sep 9, 2021
@LinuxSuRen
Copy link
Contributor Author

LinuxSuRen commented Sep 9, 2021

It is also very fast to download it via hd: hd get https://github.com/k8sli/kubeplay/releases/download/v0.1.0-alpha.3/kubeplay-v0.1.0-alpha.3-centos-7-amd64.tar.gz -t 8

image

@LinuxSuRen
Copy link
Contributor Author

I see. it does not have an executable binary file.

I tried to use makeself to build an an executable binary file, such as tkestack. But I felt it was inappropriate so so I gave up.

Build an all-in-one binary file maybe is a good solution and worth discussing 😃

Actually, it's very easy to embed the necessary resource files into a Golang binary file. See also https://github.com/kubesphere-sigs/ks/blob/master/kubectl-plugin/pipeline/tpl/resource.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants