https://github.com/tilt-dev/tilt-example-bazel
Iterative examples of how to set up Bazel with Tilt
https://github.com/tilt-dev/tilt-example-bazel
Last synced: 7 months ago
JSON representation
Iterative examples of how to set up Bazel with Tilt
- Host: GitHub
- URL: https://github.com/tilt-dev/tilt-example-bazel
- Owner: tilt-dev
- License: apache-2.0
- Created: 2020-11-02T23:12:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-28T17:36:23.000Z (almost 5 years ago)
- Last Synced: 2025-02-21T23:18:31.416Z (over 1 year ago)
- Language: Starlark
- Size: 6.73 MB
- Stars: 12
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tilt-example-bazel
[](https://circleci.com/gh/tilt-dev/tilt-example-bazel)
An example project that demonstrates setting up a Go/Bazel project in Kubernetes.
This repo will be easier to follow if you're already familiar with Bazel and how
to set it up for Go projects. If you're not, we recommend these guides:
- [Gazelle](https://github.com/bazelbuild/bazel-gazelle) (autogeneration of BUILD files for Go)
- [rules_go](https://github.com/bazelbuild/rules_go) (Bazel Go rules)
- [rules_docker](https://github.com/bazelbuild/rules_docker#go_image) (Bazel Docker rules)
## Step by Step Demo projects
In each project, run `tilt up` to build and run:
- [0-base](0-base): The simplest way to start
- [1-measured](1-measured): Use `local_resource` to measure your deployment time
- [2-deps](2-deps): Use Bazel to generate dependencies, instead of hard-coding them in the Tiltfile.
- [3-recommended](3-recommended): Live-update compiled binaries into the container.
## License
Copyright 2020 tilt.dev
Licensed under [the Apache License, Version 2.0](LICENSE)