Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Bazel in kubernetes

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install Bazel in kubernetes. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Install on CentOS 7

The Bazel development team did not provide an official package for Fedora and CentOS, which was maintained by Vincent Batts, an engineer at Redhat.

Download yum source configuration file

Use the wget command to download the yum source configuration file:

[root@ecs-d8b6] # wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.rep--2019-06-28 20 Vol 16 Vol 02-https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repResolving copr.fedorainfracloud.org (copr.fedorainfracloud.org). 209.132.184.54Connecting to copr.fedorainfracloud.org (copr.fedorainfracloud.org) | 209.132.184.54 |: 443. Connected.HTTP request sent, awaiting response... 200 OKLength: 314 [text/plain] Saving to: 'vbatts-bazel-epel-7.rep'100% [= = >] 314 -.-Kamp's in 0s 2019-06-28 20:16:03 (83.7 MB/s) -' vbatts-bazel-epel-7.rep' saved [314 MB/s] [root@ecs-d8b6] #

The downloaded file is stored in the vbatts-bazel-epel-7.rep file in the current directory, or you can create it manually without wget download. The contents of the file are as follows:

[root@ecs-d8b6 ~] # cat vbatts-bazel-epel-7.rep [vbatts-bazel] name=Copr repo for bazel owned by vbattsbaseurl= https://copr-be.cloud.fedoraproject.org/results/vbatts/bazel/epel-7-$basearch/type=rpm-mdskip_if_unavailable=Truegpgcheck=1gpgkey=https://copr-be.cloud.fedoraproject.org/results/vbatts/bazel/pubkey.gpgrepo_gpgcheck=0enabled=1enabled_metadata=1

Next, copy the downloaded vbatts-bazel-epel-7.rep file to the yum repository configuration directory / etc/yum.repos.d/:

[root@ecs-d8b6 ~] # mv vbatts-bazel-epel-7.rep / etc/yum.repos.d/ is installed using yum

First, use the yum list bazel command to see if the newly added yum configuration file in the previous step is already in effect:

[root@ecs-d8b6 ~] # yum list bazelLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.nus.edu.sg * epel: mirrors.aliyun.com * extras: mirror.nus.edu.sg * updates: mirror.nus.edu.sgAvailable Packagesbazel.x86_64 0.27.0-7.el7 vbatts-bazel

As you can see, there is already a 0.27 version that can be installed.

Use the yum install bazel command to install:

[root@ecs-d8b6 ~] # yum install bazel

During the installation process, you are prompted to install the required dependent packages, and you can complete the installation by following the operation prompts.

After the installation is completed, the bazel is automatically stored in the / usr/bin/ directory:

[root@ecs-d8b6] # which bazel/usr/bin/bazel this is the end of the article on "how to install Bazel in kubernetes". I hope the above content can be helpful to you so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report