A collection of scripts (mostly test related).
Bazel can be memory hungry and often crashes while building on Mac with default Docker memory settings (2GB) (similar reports: here and here).
Bump the memory settings in Docker Desktop for Mac (e.g. to 4 - 6GB) if you see the following errors:
$ bazel build //javascript/net/grpc/web/generator/... //net/grpc/gateway/examples/echo/...
...
Server terminated abruptly (error code: 14, error message: 'Socket closed', log file: '/root/.cache/bazel/_bazel_root/.../server/jvm.out')
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c bazel build javascript/net/grpc/web/... && cp $(bazel info bazel-genfiles)/javascript/net/grpc/web/protoc-gen-grpc-web /usr/local/bin/protoc-gen-grpc-web]: exit code: 37