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

Поделиться
HTML-код
  • Опубликовано: 17 дек 2021
  • 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 Год назад +1

    One of the best video content in the internet to get a good intro to Bazel. Good work!!

  • @davidhicks5863
    @davidhicks5863 2 года назад +15

    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!

  • @jianqingwang939
    @jianqingwang939 2 года назад +2

    This is really the best and straightforward Bazel tutorial for beginner. Thank you so much * 1000

  • @psyk0l0ge
    @psyk0l0ge 2 года назад +1

    finally was ablt to install the correct bazel version for tensorflow thx so much man

  • @seyedmohammadhosseini5793
    @seyedmohammadhosseini5793 2 года назад +2

    Looking forward to the next ones...!

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Thank you @Seyed, should be some more later this week.

  • @entanglesoftware6535
    @entanglesoftware6535 2 года назад +1

    Hi Kris,
    Thanks for that. Please make second part. :)

  • @gustavodesouzagoncalves6352
    @gustavodesouzagoncalves6352 2 года назад +2

    now bazel seems really simple! thanks man!

  • @coffee-beast-99z
    @coffee-beast-99z 6 месяцев назад

    Amazing tutorial, thank you!!!

  • @jasonzavaglia
    @jasonzavaglia Год назад +2

    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 года назад +2

    Thanks for making it simple, looking forward :)

  • @ryanhill101
    @ryanhill101 2 года назад +2

    Cool video Kris, looks interesting.

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Thanks Ryan, yeah bazel is pretty cool!

  • @MualleMatsela
    @MualleMatsela 9 месяцев назад

    what an awesome intro. Thanks

  • @kennyhoang4475
    @kennyhoang4475 2 года назад +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!

  • @user-wf4bj2zn6c
    @user-wf4bj2zn6c 2 года назад +1

    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 года назад +1

    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