Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Running bazel server in docker container#20202

Unanswered
sonicxml asked this question inQ&A
Discussion options

I would like to spin up a docker container that runs a long-running bazel server with the purpose of being able to send bazel build commands to it (similar to a remote build server) from my machine or another container. What is the best / recommended way to do this?

I saw thebazel docker sandbox doc page but it looks like it hasn't been updated in a while -- even the bazel-toolchains repo it links to doesn't have a sample.bazelrc past4.1.0. Is this still recommended?

I also tried playing around with thebazel docker container but it looks like it's set up to be both client and server and not just run a server and listen for commands.

Any guidance would be appreciated, thanks!

You must be logged in to vote

Replies: 2 comments

Comment options

Great question. I am still relatively new to bazel but definitely wonder if in the heavily containerized world we have today there is still so much sense for platform-specific toolchains and rule implementations that ship different binaries for different platforms.

I just took over maintenance for a large bazel build env that going forward should be usable on different build machines comprising windows, linux and macos/amd64, macos/arm.

Quite frankly, I think it is kind of ridiculous to implement treatments for all these different platforms. Bazel should run in a container where the respective bazel version is installed and bazel rules should make heavy use of bash and other gnu tools that the container provides.

There should be abash rule that allows running bash scripts and a large lib of rules that build on thatbash rule to implement stuff likebase64-encode/decode,yq,jq,sed, and all these other targets that sort of naturally suggest themselves.

I really wonder why that doesn't exist yet. Wouldn't it make much more sense to use bazel that way?

You must be logged in to vote
0 replies
Comment options

Proposal:#26891

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@sonicxml@veith4f

[8]ページ先頭

©2009-2025 Movatter.jp