Skip to content

Commit

Permalink
Merge pull request #36 from devzero-inc/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
dray92 authored Jun 21, 2024
2 parents 99454cc + 99c4a2f commit 473875a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
5 changes: 3 additions & 2 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@
* [Hosting](admin/hosting.md)
* [Single-Sign On (SSO)](admin/sso.md)

## 📝 How-to Guides
## 📚 How-to Guides

* [Connecting to AWS](how-to-guides/connecting-to-aws.md)
* [Connect to an RDS Instance](product-guides/how-tos/connect-to-an-rds-instance.md)
* [Connect to an S3 Bucket](product-guides/how-tos/connect-to-an-s3-bucket.md)
* [Run GitHub Actions in a DevBox](how-to-guides/run-github-actions-in-a-devbox.md)
* [Docker Remote Build & Cache](how-to-guides/docker-remote-build-cache.md)
* [Bazel remote execution/cache](how-to-guides/bazel-remote-execution-cache.md)

## 🛠️ Troubleshooting

Expand All @@ -62,7 +63,7 @@
* [Visual Studio Code](troubleshooting/vs-code.md)
* [JetBrains](troubleshooting/jetbrains.md)

## 📚 References
## 🔎 References

* [Terminology](references/terminology.md)
* [CLI Reference](references/cli-man-page/README.md)
Expand Down
36 changes: 36 additions & 0 deletions how-to-guides/bazel-remote-execution-cache.md
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
```
2 changes: 1 addition & 1 deletion how-to-guides/run-github-actions-in-a-devbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ To create one:
3. In the "scopes" section, select `repo` and optionally `admin:org` for organization runners.
4. Copy your new Personal Access Token.

Create a new recipe that resembles the following:
Create a new recipe installing kubectl, helm and GitHub ARC:

{% hint style="info" %}
Make sure to adjust the `INSTALLATION_NAME`, `NAMESPACE`, `GITHUB_CONFIG_URL`, and `GITHUB_PAT` variables as needed.
Expand Down
2 changes: 1 addition & 1 deletion references/recipe-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ You can provide environment variables to a single command only. The syntax for t
- type: command
command: make
directory: project
env:
environment:
- name: CXX
value: ccache
```
Expand Down

0 comments on commit 473875a

Please sign in to comment.