cloud-builders icon indicating copy to clipboard operation
cloud-builders copied to clipboard

bazel: minor fixes and optimizations

Open ve6yeq opened this issue 3 years ago • 3 comments

A few small bazel configuration fixes and optimizations:

  • Remove the attempt at pre-populating the local bazel distribution cache as this will end up in /root/.cache/... which is not used and not /workspace/.bazel/... which is used but is replaced for each Cloud Build job.

  • Place the local configuration in /etc/bazel.bazelrc instead of /root/.bazelrc as $HOME is set to /builder/home by Cloud Build.

  • Merge the container layers by adding everything to a single RUN statement.

ve6yeq avatar May 05 '22 14:05 ve6yeq

Can you please sign the CLA as described here?

Thanks!

bendory avatar May 11 '22 14:05 bendory

Can you please sign the CLA as described here?

This changeset is being submitted on behalf of my current Employer (BenchSci) for which I am the Google Corporate CLA Owner ([email protected]).

ve6yeq avatar May 11 '22 17:05 ve6yeq

This changeset is being submitted on behalf of my current Employer (BenchSci) for which I am the Google Corporate CLA Owner ([email protected]).

I confirmed (internally) that BenchSci has signed Google's CLA; can you please associate this commit so that the author email matches your corporate email [email protected] and add that email to your GH account? That way the CLA-bot will pick up that the CLA is valid and mark this PR accordingly.

(Sorry for the churn / bother in trying to keep it legal.)

bendory avatar May 12 '22 19:05 bendory

Closing as stale.

bendory avatar Aug 22 '23 19:08 bendory