Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag containers with Weave and Docker IPs #396

Merged
merged 2 commits into from
Aug 26, 2015
Merged

Conversation

tomwilkie
Copy link
Contributor

Fixes #326

This change involved periodically invoking weave ps, which requires the weave script to be installed in our container, which requires the Docker CLI to be installed in out container.

@tomwilkie tomwilkie force-pushed the weave-docker-ips branch 3 times, most recently from 1e6065c to b86cbaa Compare August 26, 2015 09:40
@@ -212,6 +213,7 @@ func (c *container) GetNodeMetadata() report.NodeMetadata {
ContainerCreated: c.container.Created.Format(time.RFC822),
ContainerCommand: c.container.Path + " " + strings.Join(c.container.Args, " "),
ImageID: c.container.Image,
ContainerIPs: c.container.NetworkSettings.IPAddress,

This comment was marked as abuse.

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor Author

@2opremio PTAL

}

existingIPs := report.MakeIDList(strings.Fields(nmd.Metadata[docker.ContainerIPs])...)
existingIPs = existingIPs.Add(ips...)

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor Author

@2opremio PTAL

@2opremio
Copy link
Contributor

LGTM

tomwilkie added a commit that referenced this pull request Aug 26, 2015
Tag containers with Weave and Docker IPs
@tomwilkie tomwilkie merged commit d9ab9d8 into master Aug 26, 2015
@tomwilkie tomwilkie deleted the weave-docker-ips branch August 26, 2015 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants