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

Honor DOCKER_* env variables in probe and app #2649

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

rndstr
Copy link
Contributor

@rndstr rndstr commented Jun 26, 2017

Changed default for flag -app.docker to use the DOCKER_* env variables
instead of hardcoded /var/run/docker.sock; uses docker's default if
no DOCKER_HOST defined, for both probe and app.

Fixes #1975


This is technically a breaking change (if someone had DOCKER_HOST set before and not provided an alternate location in -app.docker, it will now take a different location); albeit one I would assume impact is very low. Still, how do we handle this?

@rndstr rndstr requested a review from 2opremio June 26, 2017 15:58
prog/probe.go Outdated
@@ -236,7 +234,7 @@ func probeMain(flags probeFlags, targets []appclient.Target) {

if flags.weaveEnabled {
client := weave.NewClient(sanitize.URL("http://", 6784, "")(flags.weaveAddr))
weave, err := overlay.NewWeave(hostID, client, dockerEndpoint)
weave, err := overlay.NewWeave(hostID, client, "")

This comment was marked as abuse.

This comment was marked as abuse.

@@ -394,7 +394,7 @@ func main() {
if flags.probe.httpListen != "" {
_, _, err := net.SplitHostPort(flags.probe.httpListen)
if err != nil {
log.Fatalf("Invalid value for -app.http.address: %v", err)
log.Fatalf("Invalid value for -probe.http.address: %v", err)

This comment was marked as abuse.

Changed default for flag `-app.docker` to use the DOCKER_* env variables
instead of hardcoded /var/run/docker.sock; uses docker's default if
no DOCKER_HOST defined, for both probe and app.

Fixes #1975
@rndstr rndstr force-pushed the 1975-honor-docker-host-in-probe branch from 927bb25 to 651e52b Compare June 27, 2017 15:15
@rndstr rndstr merged commit e6bc1d6 into master Jun 28, 2017
@rndstr rndstr deleted the 1975-honor-docker-host-in-probe branch June 28, 2017 07:07
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