https://github.com/tilt-dev/tilt-example-builders
A collection of examples of how to use Tilt with different image builders
https://github.com/tilt-dev/tilt-example-builders
Last synced: about 2 months ago
JSON representation
A collection of examples of how to use Tilt with different image builders
- Host: GitHub
- URL: https://github.com/tilt-dev/tilt-example-builders
- Owner: tilt-dev
- License: apache-2.0
- Created: 2021-11-04T16:28:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T20:52:17.000Z (about 3 years ago)
- Last Synced: 2025-01-02T08:15:04.819Z (over 1 year ago)
- Language: Starlark
- Size: 198 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tilt-example-builders
[](https://circleci.com/gh/tilt-dev/tilt-example-builders)
A collection of examples of how to use Tilt with different image builders.
## Contents
### kubectl build
Drop-in replacement for `docker build` that moves builds off your laptop.
`kubectl build` deploys Docker BuildKit to a Kubernetes pod and builds the image in-cluster.
Install kubectl build: [homepage](https://github.com/vmware-tanzu/buildkit-cli-for-kubectl#getting-started)
Example Tiltfile: [./kubectl_build](./kubectl_build/Tiltfile)
### ko
Turn-key Go apps without any fuss.
Runs `go build` locally and packs it into an image.
`ko` works best when your Go app is a simple static binary, and doesn't have any
dependencies on the OS environment (e.g., loading dynamic C libraries.)
Install ko: [homepage](https://github.com/google/ko#install)
Example Tiltfile: [./ko](./ko/Tiltfile)
### pack
Stackable image builders to add whatever you need to an image.
Buildpacks give you better control over what ends up in the final container image.
It's easier to keep out the junk you don't want (like buildtools), and
keep the good stuff you do want (like hot-reloading).
Install pack: [homepage](https://buildpacks.io/docs/tools/pack/)
Example Tiltfile: [./pack](./pack/Tiltfile)