kubeplay icon indicating copy to clipboard operation
kubeplay copied to clipboard

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

Open LinuxSuRen opened this issue 3 years ago • 4 comments

image

See also https://github.com/LinuxSuRen/hd-home/pull/54

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

LinuxSuRen avatar Sep 09 '21 03:09 LinuxSuRen

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

LinuxSuRen avatar Sep 09 '21 03:09 LinuxSuRen

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 avatar Sep 09 '21 03:09 muzi502

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 avatar Sep 09 '21 03:09 LinuxSuRen

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

LinuxSuRen avatar Sep 09 '21 03:09 LinuxSuRen