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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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