Add support for composefile attributes
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
9301c298ef
commit
2c50885484
|
|
@ -189,6 +189,7 @@ func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath
|
||||||
Target: service.Build.Target,
|
Target: service.Build.Target,
|
||||||
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
||||||
Platforms: plats,
|
Platforms: plats,
|
||||||
|
Labels: service.Labels,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,12 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
||||||
Resources: resources,
|
Resources: resources,
|
||||||
VolumeDriver: service.VolumeDriver,
|
VolumeDriver: service.VolumeDriver,
|
||||||
VolumesFrom: service.VolumesFrom,
|
VolumesFrom: service.VolumesFrom,
|
||||||
|
DNS: service.DNS,
|
||||||
|
DNSSearch: service.DNSSearch,
|
||||||
|
DNSOptions: service.DNSOpts,
|
||||||
|
ExtraHosts: service.ExtraHosts,
|
||||||
|
SecurityOpt: service.SecurityOpt,
|
||||||
|
UsernsMode: container.UsernsMode(service.UserNSMode),
|
||||||
}
|
}
|
||||||
|
|
||||||
networkConfig := buildDefaultNetworkConfig(service, networkMode, getContainerName(p.Name, service, number))
|
networkConfig := buildDefaultNetworkConfig(service, networkMode, getContainerName(p.Name, service, number))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue