forked from LaconicNetwork/kompose
Updated Vendoring
It resolves issues #474 and #589 which were coming from libcompose, as well as resolves #440 and #437 partially as `group_add` & `stop_grace_period` are supported by libcompose now.
This commit is contained in:
+2
@@ -281,6 +281,7 @@ var servicesSchemaDataV2 = `{
|
||||
|
||||
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},
|
||||
"group_add": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||
"hostname": {"type": "string"},
|
||||
"image": {"type": "string"},
|
||||
"ipc": {"type": "string"},
|
||||
@@ -347,6 +348,7 @@ var servicesSchemaDataV2 = `{
|
||||
"security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||
"shm_size": {"type": ["number", "string"]},
|
||||
"stdin_open": {"type": "boolean"},
|
||||
"stop_grace_period": {"type": "string"},
|
||||
"stop_signal": {"type": "string"},
|
||||
"tmpfs": {"$ref": "#/definitions/string_or_list"},
|
||||
"tty": {"type": "boolean"},
|
||||
|
||||
+58
-57
@@ -85,63 +85,64 @@ type Log struct {
|
||||
|
||||
// ServiceConfig holds version 2 of libcompose service configuration
|
||||
type ServiceConfig struct {
|
||||
Build yaml.Build `yaml:"build,omitempty"`
|
||||
CapAdd []string `yaml:"cap_add,omitempty"`
|
||||
CapDrop []string `yaml:"cap_drop,omitempty"`
|
||||
CPUSet string `yaml:"cpuset,omitempty"`
|
||||
CPUShares yaml.StringorInt `yaml:"cpu_shares,omitempty"`
|
||||
CPUQuota yaml.StringorInt `yaml:"cpu_quota,omitempty"`
|
||||
Command yaml.Command `yaml:"command,flow,omitempty"`
|
||||
CgroupParent string `yaml:"cgroup_parent,omitempty"`
|
||||
ContainerName string `yaml:"container_name,omitempty"`
|
||||
Devices []string `yaml:"devices,omitempty"`
|
||||
DependsOn []string `yaml:"depends_on,omitempty"`
|
||||
DNS yaml.Stringorslice `yaml:"dns,omitempty"`
|
||||
DNSOpts []string `yaml:"dns_opt,omitempty"`
|
||||
DNSSearch yaml.Stringorslice `yaml:"dns_search,omitempty"`
|
||||
DomainName string `yaml:"domainname,omitempty"`
|
||||
Entrypoint yaml.Command `yaml:"entrypoint,flow,omitempty"`
|
||||
EnvFile yaml.Stringorslice `yaml:"env_file,omitempty"`
|
||||
Environment yaml.MaporEqualSlice `yaml:"environment,omitempty"`
|
||||
Expose []string `yaml:"expose,omitempty"`
|
||||
Extends yaml.MaporEqualSlice `yaml:"extends,omitempty"`
|
||||
ExternalLinks []string `yaml:"external_links,omitempty"`
|
||||
ExtraHosts []string `yaml:"extra_hosts,omitempty"`
|
||||
GroupAdd []string `yaml:"group_add,omitempty"`
|
||||
Image string `yaml:"image,omitempty"`
|
||||
Isolation string `yaml:"isolation,omitempty"`
|
||||
Hostname string `yaml:"hostname,omitempty"`
|
||||
Ipc string `yaml:"ipc,omitempty"`
|
||||
Labels yaml.SliceorMap `yaml:"labels,omitempty"`
|
||||
Links yaml.MaporColonSlice `yaml:"links,omitempty"`
|
||||
Logging Log `yaml:"logging,omitempty"`
|
||||
MacAddress string `yaml:"mac_address,omitempty"`
|
||||
MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
|
||||
MemReservation yaml.MemStringorInt `yaml:"mem_reservation,omitempty"`
|
||||
MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
|
||||
MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
|
||||
NetworkMode string `yaml:"network_mode,omitempty"`
|
||||
Networks *yaml.Networks `yaml:"networks,omitempty"`
|
||||
OomKillDisable bool `yaml:"oom_kill_disable,omitempty"`
|
||||
OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
|
||||
Pid string `yaml:"pid,omitempty"`
|
||||
Ports []string `yaml:"ports,omitempty"`
|
||||
Privileged bool `yaml:"privileged,omitempty"`
|
||||
SecurityOpt []string `yaml:"security_opt,omitempty"`
|
||||
ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
|
||||
StopSignal string `yaml:"stop_signal,omitempty"`
|
||||
Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
|
||||
VolumeDriver string `yaml:"volume_driver,omitempty"`
|
||||
Volumes *yaml.Volumes `yaml:"volumes,omitempty"`
|
||||
VolumesFrom []string `yaml:"volumes_from,omitempty"`
|
||||
Uts string `yaml:"uts,omitempty"`
|
||||
Restart string `yaml:"restart,omitempty"`
|
||||
ReadOnly bool `yaml:"read_only,omitempty"`
|
||||
StdinOpen bool `yaml:"stdin_open,omitempty"`
|
||||
Tty bool `yaml:"tty,omitempty"`
|
||||
User string `yaml:"user,omitempty"`
|
||||
WorkingDir string `yaml:"working_dir,omitempty"`
|
||||
Ulimits yaml.Ulimits `yaml:"ulimits,omitempty"`
|
||||
Build yaml.Build `yaml:"build,omitempty"`
|
||||
CapAdd []string `yaml:"cap_add,omitempty"`
|
||||
CapDrop []string `yaml:"cap_drop,omitempty"`
|
||||
CPUSet string `yaml:"cpuset,omitempty"`
|
||||
CPUShares yaml.StringorInt `yaml:"cpu_shares,omitempty"`
|
||||
CPUQuota yaml.StringorInt `yaml:"cpu_quota,omitempty"`
|
||||
Command yaml.Command `yaml:"command,flow,omitempty"`
|
||||
CgroupParent string `yaml:"cgroup_parent,omitempty"`
|
||||
ContainerName string `yaml:"container_name,omitempty"`
|
||||
Devices []string `yaml:"devices,omitempty"`
|
||||
DependsOn []string `yaml:"depends_on,omitempty"`
|
||||
DNS yaml.Stringorslice `yaml:"dns,omitempty"`
|
||||
DNSOpts []string `yaml:"dns_opt,omitempty"`
|
||||
DNSSearch yaml.Stringorslice `yaml:"dns_search,omitempty"`
|
||||
DomainName string `yaml:"domainname,omitempty"`
|
||||
Entrypoint yaml.Command `yaml:"entrypoint,flow,omitempty"`
|
||||
EnvFile yaml.Stringorslice `yaml:"env_file,omitempty"`
|
||||
Environment yaml.MaporEqualSlice `yaml:"environment,omitempty"`
|
||||
Expose []string `yaml:"expose,omitempty"`
|
||||
Extends yaml.MaporEqualSlice `yaml:"extends,omitempty"`
|
||||
ExternalLinks []string `yaml:"external_links,omitempty"`
|
||||
ExtraHosts []string `yaml:"extra_hosts,omitempty"`
|
||||
GroupAdd []string `yaml:"group_add,omitempty"`
|
||||
Image string `yaml:"image,omitempty"`
|
||||
Isolation string `yaml:"isolation,omitempty"`
|
||||
Hostname string `yaml:"hostname,omitempty"`
|
||||
Ipc string `yaml:"ipc,omitempty"`
|
||||
Labels yaml.SliceorMap `yaml:"labels,omitempty"`
|
||||
Links yaml.MaporColonSlice `yaml:"links,omitempty"`
|
||||
Logging Log `yaml:"logging,omitempty"`
|
||||
MacAddress string `yaml:"mac_address,omitempty"`
|
||||
MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
|
||||
MemReservation yaml.MemStringorInt `yaml:"mem_reservation,omitempty"`
|
||||
MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
|
||||
MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
|
||||
NetworkMode string `yaml:"network_mode,omitempty"`
|
||||
Networks *yaml.Networks `yaml:"networks,omitempty"`
|
||||
OomKillDisable bool `yaml:"oom_kill_disable,omitempty"`
|
||||
OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
|
||||
Pid string `yaml:"pid,omitempty"`
|
||||
Ports []string `yaml:"ports,omitempty"`
|
||||
Privileged bool `yaml:"privileged,omitempty"`
|
||||
SecurityOpt []string `yaml:"security_opt,omitempty"`
|
||||
ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
|
||||
StopGracePeriod string `yaml:"stop_grace_period,omitempty"`
|
||||
StopSignal string `yaml:"stop_signal,omitempty"`
|
||||
Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
|
||||
VolumeDriver string `yaml:"volume_driver,omitempty"`
|
||||
Volumes *yaml.Volumes `yaml:"volumes,omitempty"`
|
||||
VolumesFrom []string `yaml:"volumes_from,omitempty"`
|
||||
Uts string `yaml:"uts,omitempty"`
|
||||
Restart string `yaml:"restart,omitempty"`
|
||||
ReadOnly bool `yaml:"read_only,omitempty"`
|
||||
StdinOpen bool `yaml:"stdin_open,omitempty"`
|
||||
Tty bool `yaml:"tty,omitempty"`
|
||||
User string `yaml:"user,omitempty"`
|
||||
WorkingDir string `yaml:"working_dir,omitempty"`
|
||||
Ulimits yaml.Ulimits `yaml:"ulimits,omitempty"`
|
||||
}
|
||||
|
||||
// VolumeConfig holds v2 volume configuration
|
||||
|
||||
Reference in New Issue
Block a user