-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from devzero-inc/staging
Staging
- Loading branch information
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Bazel remote execution/cache | ||
|
||
### Installation (using Helm) | ||
|
||
Make sure both kubectl and helm are installed. | ||
|
||
When creating a new workspace, take a look at the [Kubectl](../references/starter-templates/infra/kubectl.md) recipe and the [Helm](../references/starter-templates/infra/helm.md) recipe. | ||
|
||
Install bazel buildfarm on your k8s cluster using the official helm chart: | ||
|
||
``` | ||
helm install \ | ||
-n bazel-buildfarm \ | ||
--create-namespace \ | ||
bazel-buildfarm \ | ||
oci://ghcr.io/bazelbuild/buildfarm \ | ||
--version "0.2.4" | ||
``` | ||
|
||
Forward the k8s port to your DevBox: | ||
|
||
``` | ||
kubectl port-forward service/bazel-buildfarm-server -n bazel-buildfarm 8980:8980 --address 0.0.0.0 | ||
``` | ||
|
||
### Remote execution | ||
|
||
``` | ||
bazel build --remote_executor=grpc://<your-devbox>:8980 :main | ||
``` | ||
|
||
### Remote caching | ||
|
||
``` | ||
bazel build --remote_cache=grpc://<your-devbox>:8980 :main | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters