JetBrains / teamcity-bazel-plugin

TeamCity plugin for Bazel build system
Apache License 2.0
14 stars 6 forks source link

How to get Bazel installed on the build agent? #4

Closed konste closed 4 years ago

konste commented 4 years ago

How shall we "bootstrap" Bazel on the build agent, so that it can be picked up by this plugin? Our build agents are dynamically created and cannot have Bazel pre-baked in the image, we need it installed as a build step. And we need it for Windows, Linux and Mac build agents. What do you recommend?

NikolayPianikov commented 4 years ago

@konste I would prefer using bazel in docker but it is not about Mac. Another option is to create your own images in Azure, AWS or in local Virtual Infrastructure with installed Bazel. Also try looking into bazelisk

konste commented 4 years ago

At this time we settled for bringing Bazel binary down to the agent as part of the sources synchronization process using dedicated VCS root pointing to the repository where those binaries live.