k8sli / kubeplay

Deploy kubernetes by kubespray in offline
https://t.me/kubeplay
Apache License 2.0
144 stars 38 forks source link

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

Open LinuxSuRen opened 3 years ago

LinuxSuRen commented 3 years ago

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 commented 3 years ago

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

muzi502 commented 3 years ago

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 😃

LinuxSuRen commented 3 years ago

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 commented 3 years ago

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