Mar 142022
 

go的代码编译,其实我没怎么玩过。这次体验一次,在国内编译,其实不容易。

yum install docker-ce
systemctl enable --now docker
git clone https://hub.fastgit.xyz/kubesphere/kubekey.git
cd kubekey/
docker pull golang:1.17
./build.sh -p

如果顺利,那么在output的文件夹下,你就可以看到kk的文件。

# pwd
/root/kubekey/output
[root@kubekey output]# ./kk version
version.BuildInfo{Version:"latest+unreleased", GitCommit:"dcb2435e0aca31c85fb7ffe70345c01adba15357", GitTreeState:"clean", GoVersion:"go1.17.8"}

 Leave a Reply

(required)

(required)

This site uses Akismet to reduce spam. Learn how your comment data is processed.