Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
func BuildImage(args BuildImageArgs) (hash string, err error)
func Def ¶
func Def[T comparable](v T, alt T) T
Types ¶
type AbsPath ¶
type AbsPath string
func MakeAbsPath ¶ added in v0.0.4
func (*AbsPath) UnmarshalText ¶
During json unmarshaling, relative paths are based on the working directory of dinker
type BuildImageArgs ¶
type BuildImageArgs struct { // optional, if zero then "scratch" (no base layers, need Architecture and Os below) FromPath AbsPath // Defaults to FROM image architecture Architecture string // Defaults to FROM image os Os string // Files to add to the image Files []BuildImageArgsFile // Don't inherit env from FROM image ClearEnv bool AddEnv map[string]string // Defaults to FROM image working dir WorkingDir string // Defaults to FROM image user User string Entrypoint []string Cmd []string Ports []BuildImageArgsPort StopSignal string Labels map[string]string /// Where to place the built image as an oci-dir DestDirPath AbsPath }
type BuildImageArgsFile ¶
type BuildImageArgsPort ¶
Click to show internal directories.
Click to hide internal directories.