Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pshabunia0epam/a90494707a207ca725c642469f287e89 to your computer and use it in GitHub Desktop.
Save pshabunia0epam/a90494707a207ca725c642469f287e89 to your computer and use it in GitHub Desktop.
Bazel/RBE in a docker
docker run \
-e USER="$(id -u)" \
-v $PWD:/src/workspace \
-v /tmp/build_output:/tmp/build_output \
-v ~/.config/gcloud:/root/.config/gcloud \
-w /src/workspace \
l.gcr.io/google/bazel:0.25.0 \
--output_user_root=/tmp/build_output \
--nohome_rc --bazelrc=.bazelrc-rbe-0.25.0 \
build //... \
--config=remote-ui \
--remote_instance_name=projects/$GOOGLE_CLOUD_PROJECT/instances/default_instance \
--project_id=$GOOGLE_CLOUD_PROJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment