ko2dockerfile

command module
v0.0.0-...-bbdce72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL