modulepackage
0.0.0-20240617110728-bbdce72f0d5b
Repository: https://github.com/vdemeester/ko2dockerfile.git
Documentation: pkg.go.dev
# README
ko2dockerfile
Easily generate Dockerfile
from ko
"commands" and configuration
Idea
- Extract images from yamls (or do like
ko build
or both) - Read =KO_CONFIG_DIR=
- Add possibility to add extras (through configuration)
- annotations (or labels)
- envs
- runs (=RUN=)
Keep it that simple. Make downstream /generate/ that configuration. Almost /drop-in/ replacement to =ko= command.
ko apply -f -R config # …
lord generate -f -R config # … or apply
lord generate --output dockerfiles -f -R config # … or apply
# …
ko build ./cmd/foo
lord generate ./cmd/foo # output a dockerfile
lord build ./cmd/foo # build using dockerfile