Skip to content
This repository was archived by the owner on Jun 5, 2018. It is now read-only.
This repository was archived by the owner on Jun 5, 2018. It is now read-only.

Dynamic DNS name in ecssd_agent.go is required #45

@aditi10

Description

@aditi10

The DNSNAME in ecssd_agent.go is hard coded to "servicediscovery.internal". We need to try making it dynamic suitable for any Rout 53 entry.

When I tried to run the ecssd_agent script obtained multiple issues

go run ecssd_agent.go

command-line-arguments

./ecssd_agent.go:73:21: cannot assign <-chan "vendor/github.com/docker/docker/api/types/events".Message to e.events (type <-chan "github.com/docker/docker/api/types/events".Message) in multiple assignment
./ecssd_agent.go:73:69: cannot use "github.com/docker/docker/api/types".EventsOptions literal (type "github.com/docker/docker/api/types".EventsOptions) as type "vendor/github.com/docker/docker/api/types".EventsOptions in argument to e.dockerClient.Events
./ecssd_agent.go:73:77: cannot use filters (type "github.com/docker/docker/api/types/filters".Args) as type "vendor/github.com/docker/docker/api/types/filters".Args in field value
./ecssd_agent.go:403:96: cannot use "github.com/docker/docker/api/types".ContainerListOptions literal (type "github.com/docker/docker/api/types".ContainerListOptions) as type "vendor/github.com/docker/docker/api/types".ContainerListOptions in argument to dockerClient.ContainerList
./ecssd_agent.go:479:46: cannot use container (type "vendor/github.com/docker/docker/api/types".ContainerJSON) as type "github.com/docker/docker/api/types".ContainerJSON in argument to getNetworkPortAndServiceName
./ecssd_agent.go:582:33: cannot use config (type *"github.com/aws/aws-sdk-go/aws".Config) as type *"vendor/github.com/aws/aws-sdk-go/aws".Config in argument to session.NewSession
./ecssd_agent.go:698:45: cannot use container (type "vendor/github.com/docker/docker/api/types".ContainerJSON) as type "github.com/docker/docker/api/types".ContainerJSON in argument to getNetworkPortAndServiceName
./ecssd_agent.go:727:45: cannot use container (type "vendor/github.com/docker/docker/api/types".ContainerJSON) as type "github.com/docker/docker/api/types".ContainerJSON in argument to getNetworkPortAndServiceName

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions