From dd11a0e2e7a143f89bca1be6e4cd56df0640dbe0 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Mon, 18 Dec 2017 04:40:16 -0800 Subject: remote: Add support for Google Cloud Storage. Add support for Google Cloud Storage (GCS) as a HTTP caching backend. This commit mainly adds the infrastructure necessary to authenticate to GCS. Using GCS as a caching backend works as follows: 1) Create a new GCS bucket. 2) Create a service account that can read and write to the GCS bucket and generate a JSON credentials file for it. 3) Invoke Bazel as follows: bazel build --remote_rest_cache=https://storage.googleapis.com/ --auth_enabled --auth_scope=https://www.googleapis.com/auth/devstorage.read_write --auth_credentials= I'll add simplification's and docs in a subsequent commit. Change-Id: Ie827d7946a2193b97ea7d9aa72eb15f09de2164d PiperOrigin-RevId: 179406380 --- .../main/java/com/google/devtools/build/remote/worker/RemoteWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/remote/src/main/java/com/google/devtools/build/remote/worker/RemoteWorker.java b/src/tools/remote/src/main/java/com/google/devtools/build/remote/worker/RemoteWorker.java index b49df47f4e..8463bb0091 100644 --- a/src/tools/remote/src/main/java/com/google/devtools/build/remote/worker/RemoteWorker.java +++ b/src/tools/remote/src/main/java/com/google/devtools/build/remote/worker/RemoteWorker.java @@ -260,7 +260,7 @@ public final class RemoteWorker { // 3. Finally use a ConcurrentMap to back the blob store. final SimpleBlobStore blobStore; if (usingRemoteCache) { - blobStore = SimpleBlobStoreFactory.create(remoteOptions, null); + blobStore = SimpleBlobStoreFactory.create(remoteOptions, null, null); } else if (remoteWorkerOptions.casPath != null) { blobStore = new OnDiskBlobStore(fs.getPath(remoteWorkerOptions.casPath)); } else if (remoteWorkerOptions.hazelcastStandaloneListenPort != 0) { -- cgit v1.2.3