A collection of examples of how to use Tilt with different image builders.
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
Example Tiltfile: ./kubectl_build
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
Example Tiltfile: ./ko
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
Example Tiltfile: ./pack