1. 程式人生 > >【Kubernetes社群之路】Bazel安裝

【Kubernetes社群之路】Bazel安裝

建議跟據官方指導文件(https://docs.bazel.build/install.html)進行安裝Bazel。像其他開源工具一樣,Bazel官方文件介紹瞭如何在各種作業系統上安裝,也有從原始碼安裝的詳細指導。

在CentOS 7上安裝

Bazel開發團隊並沒有提供針對Fedora和CentOS的官方包,是Redhat的一位名叫Vincent Batts的工程師維護的。

下載yum源配置檔案

[root@ecs-d8b6 ~]# wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
--2019-06-28 19:29:37--  https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
Resolving copr.fedorainfracloud.org (copr.fedorainfracloud.org)... 209.132.184.54
Connecting to copr.fedorainfracloud.org (copr.fedorainfracloud.org)|209.132.184.54|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 314 [text/plain]
Saving to: ‘vbatts-bazel-epel-7.repo’

100%[============================================================================================================================================================================================>] 314         --.-K/s   in 0s      

2019-06-28 19:29:39 (103 MB/s) - ‘vbatts-bazel-epel-7.repo’ saved [314/314]

[root@e