Skip to content

Commit 5553bf5

Browse files
committed
Update ContainerConfig to accomodate fields supplied by compose 3
1 parent e570122 commit 5553bf5

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed
Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
package containerconfig
22

3+
import "github.com/aws/aws-sdk-go/service/ecs"
4+
35
// ContainerConfig all compose fields supported by the ecs-cli
46
// TODO: finalize fields
57
type ContainerConfig struct {
68
Name string
79

8-
CapAdd []string
9-
CapDrop []string
10-
Command string // type TBD
11-
Devices []string
12-
DNS []string // StringList in docker/cli
13-
Entrypoint string // ShellCommand in docker/cli
14-
Environment []string // MappingWithEquals in docker/cli
15-
EnvFile []string // StringList in docker/cli
16-
ExtraHosts []string
17-
Hostname string
18-
HealthCheck interface{} // *HealthCheckConfig in docker/cli
19-
Image string
10+
CapAdd []string
11+
CapDrop []string
12+
Command []string
13+
Devices []string
14+
DNSSearchDomains []string
15+
DNSServers []string
16+
DockerLabels map[string]*string
17+
DockerSecurityOptions []string
18+
Entrypoint []string
19+
Environment []*ecs.KeyValuePair
20+
ExtraHosts []string
21+
Hostname string
22+
HealthCheck *ecs.HealthCheck
23+
Image string
24+
Links []string
25+
LogConfiguration *ecs.LogConfiguration
26+
PortMappings []*ecs.PortMapping
27+
Privileged bool
28+
ReadOnly bool
29+
Tmpfs []string
30+
User string
31+
WorkingDirectory string
2032
}

0 commit comments

Comments
 (0)