Bazel Tutorial: (Part 1) Getting Started, Bazelisk & our First Build Targets

  Рет қаралды 50,106

Kris Foster

Kris Foster

2 жыл бұрын

In this video we're going to be creating our first build targets in Bazel. Bazel is a build tool that is very popular for use in monorepos. We're going to start by discussing what bazel is & the motivation for using it. We're then going to install bazelisk & use it to manage our bazel version. Then, we're going to create our first bazel targets using the genrule.
Bazel: bazel.build/
Code: github.com/kriscfoster/multi-...

Пікірлер: 28
@spcs999
@spcs999 Жыл бұрын
One of the best video content in the internet to get a good intro to Bazel. Good work!!
@jianqingwang939
@jianqingwang939 2 жыл бұрын
This is really the best and straightforward Bazel tutorial for beginner. Thank you so much * 1000
@coffee-beast-99z
@coffee-beast-99z 7 ай бұрын
Amazing tutorial, thank you!!!
@entanglesoftware6535
@entanglesoftware6535 2 жыл бұрын
Hi Kris, Thanks for that. Please make second part. :)
@psyk0l0ge
@psyk0l0ge 2 жыл бұрын
finally was ablt to install the correct bazel version for tensorflow thx so much man
@davidhicks5863
@davidhicks5863 2 жыл бұрын
This is the best introduction to Bazel that I've come across. Please make more if you get a chance (I realize there must not be a huge audience for this type of content, but I will definitely share it with my friends). I think it could be interesting to see how more complex workflows (perhaps working with containers or building remotely) would work. Regardless, I subscribed and am looking forward to any other tutorials you have!
@davidhicks5863
@davidhicks5863 2 жыл бұрын
Just saw you have a few other videos on this topic. Definitely going to check those out!
@MualleMatsela
@MualleMatsela 10 ай бұрын
what an awesome intro. Thanks
@jasonzavaglia
@jasonzavaglia Жыл бұрын
Thanks, this is excellent. Been working with a huge monorepo with a lot of customisation for the last two years, but getting to grips with the basics, the extra rules, it's non-trivial. This is a great introduction and it makes me think I should point new starters in my org at it.
@KrisFoster1
@KrisFoster1 Жыл бұрын
Thank you for the kind feedback @Jason. Yes, there aren't many video resources for learning bazel out there yet!
@ppan
@ppan 2 жыл бұрын
Thanks for making it simple, looking forward :)
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thank you @vish!
@gustavodesouzagoncalves6352
@gustavodesouzagoncalves6352 2 жыл бұрын
now bazel seems really simple! thanks man!
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Glad you enjoyed!
@seyedmohammadhosseini5793
@seyedmohammadhosseini5793 2 жыл бұрын
Looking forward to the next ones...!
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thank you @Seyed, should be some more later this week.
@kennyhoang4475
@kennyhoang4475 2 жыл бұрын
Great video to start off learning Bazel (which I had to refresh myself on some initial concepts).
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thank you for the kind feedback!
@ryanhill101
@ryanhill101 2 жыл бұрын
Cool video Kris, looks interesting.
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thanks Ryan, yeah bazel is pretty cool!
@user-wf4bj2zn6c
@user-wf4bj2zn6c 2 жыл бұрын
Thank you!
@kyuantym
@kyuantym Жыл бұрын
Subbed
@SlavMFM
@SlavMFM 2 жыл бұрын
Great introduction, thanks! How Bazel's caching is gonna work if my genrule(), for example, is going to make server requests, pull code from GIT or use current time?
@dtienloi
@dtienloi Жыл бұрын
That is not the intended use. External dependencies should be fetched using repositories rules. Build targets should be “self-contained”. Bazel has some sandboxing capabilities to prevent unwanted network traffic, but it is really up to the developers to be self disciplined
@lakshmaji.mutyala
@lakshmaji.mutyala 2 жыл бұрын
Could you make a video on bazel with at least one front-end framework (like angular, react or svelte etc) in a monorepo.
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Hey, yeah this will be coming soon
@lakshmaji.mutyala
@lakshmaji.mutyala 2 жыл бұрын
@@KrisFoster1 🤩 thank you, will wait for the blasting update
What is a monorepo? | Getting started with nx
18:30
Coding Garden
Рет қаралды 8 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 37 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
What's Bazel? Why should you care?
42:50
Siemens Knowledge Hub
Рет қаралды 2,5 М.
Getting Started with Bazel
11:39
Google Open Source
Рет қаралды 11 М.
GitHub Actions for Bazel Monorepo - Building & Testing (CI)
6:58
BazelCon 2019 Day 2: Half-Day Bazel Bootcamp (Part 1)
1:27:56
Google Open Source
Рет қаралды 16 М.
Bazel Tutorial for C++ in 30 Minutes
29:19
arisaif
Рет қаралды 8 М.
Why use a monorepo?
6:32
Vercel
Рет қаралды 103 М.
Nokia 3310 top
0:20
YT 𝒯𝒾𝓂𝓉𝒾𝓀
Рет қаралды 3,8 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 296 М.