构建和部署 Go 应用程序
ko: Easy Go ContainersGoogle has applied for
koto join the Cloud Native Computing Foundation as a Sandbox project! Learn more here!
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 easy, produces SBOMs by default, and includes support for simple YAML templating which makes it a powerful tool for Kubernetes applications.
ko and get started!This work is based heavily on experience from having built the Docker and Kubernetes support for Bazel. That work was presented here.
Questions? Comments? Ideas?
Come discuss ko with us in the #ko-build channel on the Kubernetes Slack!
See you there!
You can find all the necessary details about the community meetings in this page.
功能请求: 添加压缩级别配置选项
安全性: GOFLAGS 环境绕过 gobuild.go 中的 toolexec 检查
ko build -toolexec 选项标志,允许在 git 工作流程中使用
为不需要注册表的多平台构建添加 oci-archive 输出
docs: 文档 - tarball 不支持多平台图像
查看 zig 以构建跨平台的 CGO
在构建之前检查推送权限
可重命名的二进制文件/路径
允许 ko 层清晰堆叠
想法: 构建 .ko.yaml 中定义的所有图像