Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMount ¶
DecodeMount parses mount format for directories to be mounted as bind volumes
func ValidateMountDir ¶
ValidateMountDir verifies that mount values are in proper format <src>:<dest>:<mode> Format should match, <mode> is optional which is `readOnly` by default and `src` directory exists in host machine
Types ¶
type Configs ¶
type Configs struct {
Tasks map[string][]Task `validate:"required,min=1,dive,keys,required,endkeys,required,min=1,required"`
}
Configs describes the parsed information from the dunner file
func GetConfigs ¶
GetConfigs reads and parses tasks from the dunner file
type Task ¶
type Task struct { Name string `yaml:"name"` Image string `yaml:"image" validate:"required"` SubDir string `yaml:"dir"` Command []string `yaml:"command" validate:"omitempty,dive,required"` Commands [][]string `yaml:"commands"` Envs []string `yaml:"envs"` Mounts []string `yaml:"mounts" validate:"omitempty,dive,min=1,mountdir"` Follow string `yaml:"follow"` Args []string `yaml:"args"` }
Task describes a single task to be run in a docker container
Click to show internal directories.
Click to hide internal directories.