@@ -31,9 +31,9 @@ type Docker struct {
3131 Tag string `json:"tag" hcl:"tag" yaml:"tag"`
3232 Dockerfile string `json:"dockerfile,omitempty" hcl:"dockerfile,omitempty" yaml:"dockerfile,omitempty"`
3333 BuildArgs []BuildArg `json:"buildArgs,omitempty" hcl:"buildArgs,omitempty" yaml:"buildArgs,omitempty"`
34- Auth Auth `json:"auth" hcl:"auth" yaml:"auth"`
34+ Auth Auth `json:"auth,omitempty " hcl:"auth,omitempty " yaml:"auth,omitempty "`
3535 NotPrivate bool `json:"notPrivate,omitempty" hcl:"notPrivate,omitempty" yaml:"notPrivate,omitempty"`
36- Caporal Caporal `json:"caporal" hcl:"caporal" yaml:"caporal"`
36+ Caporal Caporal `json:"caporal,omitempty " hcl:"caporal,omitempty " yaml:"caporal,omitempty "`
3737}
3838
3939// BuildArg the docker --build-args
@@ -51,9 +51,10 @@ type Caporal struct {
5151
5252// CaporalOptions are flags for docker run
5353type CaporalOptions struct {
54- Publish []string `json:"publish" hcl:"publish" yaml:"publish"`
55- Network string `json:"network" hcl:"network" yaml:"network"`
56- Mount []HostMount `json:"mount" hcl:"mount" yaml:"mount"`
54+ Publish []string `json:"publish,omitempty" hcl:"publish,omitempty" yaml:"publish,omitempty"`
55+ Network string `json:"network,omitempty" hcl:"network,omitempty" yaml:"network,omitempty"`
56+ Mount []HostMount `json:"mount,omitempty" hcl:"mount,omitempty" yaml:"mount,omitempty"`
57+ LogDriver docker.LogConfig `json:"logDriver,omitempty" hcl:"logDriver,omitempty" yaml:"logDriver,omitempty"`
5758}
5859type HostMount struct {
5960 Bind string `json:"bind" hcl:"bind" yaml:"bind"`
0 commit comments