An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# tilt-example-bazel

[![Build Status](https://circleci.com/gh/tilt-dev/tilt-example-bazel/tree/main.svg?style=shield)](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)