https://github.com/google/ko
Build and deploy Go applications
https://github.com/google/ko
container containers deploy docker go golang kubernetes
Last synced: about 1 month ago
JSON representation
Build and deploy Go applications
- Host: GitHub
- URL: https://github.com/google/ko
- Owner: ko-build
- License: apache-2.0
- Created: 2019-03-21T19:24:01.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T07:50:16.000Z (6 months ago)
- Last Synced: 2024-10-29T15:10:52.095Z (6 months ago)
- Topics: container, containers, deploy, docker, go, golang, kubernetes
- Language: Go
- Homepage: https://ko.build
- Size: 46 MB
- Stars: 7,621
- Watchers: 41
- Forks: 399
- Open Issues: 54
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
- Roadmap: ROADMAP.md
Awesome Lists containing this project
- awesome-software-supply-chain-security - ko -  - Build and deploy Go applications on Kubernetes (CI/CD)
- awesome-go - ko - Command line tool for building and deploying Go applications on Kubernetes Stars:`7.9K`. (Software Packages / DevOps Tools)
- awesome-list - ko
- awesome-k8s-resources - ko - `ko` is a tool for building and deploying Golang applications to Kubernetes. (Tools and Libraries / Development Tools)
- awesome-go-extra - ko - 03-21T19:24:01Z|2022-08-24T18:06:12Z| (Go Tools / DevOps Tools)
README
# `ko`: Easy Go Containers
[](https://github.com/ko-build/ko/actions?query=workflow%3ABuild)
[](https://godoc.org/github.com/google/ko)
[](https://goreportcard.com/report/ko-build/ko)
[](https://slsa.dev/images/gh-badge-level3.svg)
---
> 🎉 Google has applied for `ko` to join the Cloud Native Computing Foundation as a Sandbox project! Learn more [here](https://opensource.googleblog.com/2022/10/ko-applies-to-become-a-cncf-sandbox-project.html)!
`ko` is a simple, fast container image builder for Go applications.
It's ideal for use cases where your image contains a single Go application
without any/many dependencies on the OS base image (e.g., no cgo, no OS package
dependencies).`ko` builds images by effectively executing `go build` on your local machine,
and as such doesn't require `docker` to be installed. This can make it a good
fit for lightweight CI/CD use cases.`ko` makes [multi-platform builds](https://ko.build/features/multi-platform/) easy, produces [SBOMs](https://ko.build/features/sboms/) by default, and includes support for simple YAML templating which makes it a powerful tool for [Kubernetes applications](https://ko.build/features/k8s/).
# [Install `ko`](https://ko.build/install/) and [get started](https://ko.build/get-started/)!
### Acknowledgements
This work is based heavily on experience from having built the [Docker](https://github.com/bazelbuild/rules_docker) and [Kubernetes](https://github.com/bazelbuild/rules_k8s) support for [Bazel](https://bazel.build).
That work was presented [here](https://www.youtube.com/watch?v=RS1aiQqgUTA).### Discuss
Questions? Comments? Ideas?
Come discuss `ko` with us in the `#ko-build` channel on the [Kubernetes Slack](https://slack.k8s.io)!
See you there!### Community Meetings
You can find all the necessary details about the community meetings in this [page](https://ko.build/community).