Skip to content

Commit 81603dc

Browse files
adrienthebocsweichel
authored andcommitted
Update README and inline docs on different remote caching providers
1 parent f73be54 commit 81603dc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,11 @@ Using this mechanism you can also overwrite the default manifest entries, e.g. "
326326
Leeway is configured exclusively through the WORKSPACE.yaml/BUILD.yaml files and environment variables. The following environment
327327
variables have an effect on leeway:
328328
- `LEEWAY_WORKSPACE_ROOT`: Contains the path where to look for a WORKSPACE file. Can also be set using --workspace.
329-
- `LEEWAY_REMOTE_CACHE_BUCKET`: Enables remote caching using GCP buckets. Set this variable to the bucket name used for caching. When this variable is set, leeway expects "gsutil" in the path configured and authenticated so that it can work with the bucket.
329+
- `LEEWAY_REMOTE_CACHE_STORAGE`: Defines the remote caching storage provider. Valid values are "GCP" and "AWS". Defaults to "GCP".
330+
- `LEEWAY_REMOTE_CACHE_BUCKET`: Enables remote caching using GCP or S3 buckets. Required credentials depend on the storage provider:
331+
- `"GCP"`: leeway expects "gsutil" in the path configured and authenticated so that it can work with the bucket.
332+
- `"AWS"`: leeway expects that AWS credentials have been provided and with read/write access to the S3 bucket.
333+
For details on configuring AWS credentials see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
330334
- `LEEWAY_CACHE_DIR`: Location of the local build cache. The directory does not have to exist yet.
331335
- `LEEWAY_BUILD_DIR`: Working location of leeway (i.e. where the actual builds happen). This location will see heavy I/O which makes it advisable to place this on a fast SSD or in RAM.
332336
- `LEEWAY_YARN_MUTEX`: Configures the mutex flag leeway will pass to yarn. Defaults to "network". See https://yarnpkg.com/lang/en/docs/cli/#toc-concurrency-and-mutex for possible values.

cmd/root.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ var rootCmd = &cobra.Command{
8080
Leeway is configured exclusively through the WORKSPACE/BUILD files and environment variables. The following environment
8181
variables have an effect on leeway:
8282
<light_blue>LEEWAY_WORKSPACE_ROOT</> Contains the path where to look for a WORKSPACE file. Can also be set using --workspace.
83-
<light_blue>LEEWAY_REMOTE_CACHE_BUCKET</> Enables remote caching using GCP buckets. Set this variable to the bucket name used for caching.
84-
When this variable is set, leeway expects "gsutil" in the path configured and authenticated so
85-
that it can work with the bucket.
83+
<light_blue>LEEWAY_REMOTE_CACHE_STORAGE</> Defines the remote caching storage provider. Valid values are "GCP" and "AWS". Defaults to "GCP".
84+
<light_blue>LEEWAY_REMOTE_CACHE_BUCKET</> Enables remote caching using GCP or S3 buckets. Required credentials depend on the storage provider:
85+
- GCP: leeway expects "gsutil" in the path configured and authenticated so that it can work with the bucket.
86+
- AWS: leeway expects that AWS credentials have been provided and with read/write access to the S3 bucket.
87+
For details on configuring AWS credentials see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
8688
<light_blue>LEEWAY_CACHE_DIR</> Location of the local build cache. The directory does not have to exist yet.
8789
<light_blue>LEEWAY_BUILD_DIR</> Working location of leeway (i.e. where the actual builds happen). This location will see heavy I/O
8890
which makes it advisable to place this on a fast SSD or in RAM.

0 commit comments

Comments
 (0)