Mount /var/lib/bazelbuild into Docker containers
@@ -1057,7 +1057,11 @@ def create_step(label, commands, platform=DEFAULT_PLATFORM):
"privileged": True,
"propagate-environment": True,
"tmpfs": ["/home/bazel/.cache:exec,uid=999,gid=999"],
- "volumes": [".:/workdir", "{0}:{0}".format("/var/lib/buildkite-agent/builds")],
+ "volumes": [
+ ".:/workdir",
+ "{0}:{0}".format("/var/lib/buildkite-agent/builds"),
+ "{0}:{0}:ro".format("/var/lib/bazelbuild"),
+ ],
"workdir": "/workdir",
}
},
