Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Make proxy listen on unix:///var/run/weave.sock #1026

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Conversation

tomwilkie
Copy link
Contributor

  • proxy still listens on 0.0.0.0; can now listen on multiple endpoints
  • bind mounts /var/run instead of /var/run/docker.sock so the host can see the proxy sock.
  • copies owner & permissions from /var/run/docker.sock to /var/run/weave.sock

Fixes #1003

@@ -921,8 +921,8 @@ proxy_args() {
}

proxy_addr() {
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then
addr=${addr##* }
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | grep -oE "proxy listening on .*" | head -n1); then

This comment was marked as abuse.

@rade
Copy link
Member

rade commented Jun 26, 2015

Need to update the weave usage. And the proxy docs.

if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | head -n3 | grep -oE "proxy listening on .*"); then
addr=${addr##* }
if addr=$(docker logs $PROXY_CONTAINER_NAME 2>/dev/null | grep -oE "proxy listening on .*" | head -n1); then
addr=${addr##* tcp://}

This comment was marked as abuse.

@tomwilkie tomwilkie assigned rade and unassigned tomwilkie Jun 26, 2015
errs := make(chan error)
for _, addr := range proxy.ListenAddrs {
Info.Println("proxy listening on", addr)
}

This comment was marked as abuse.

@rade
Copy link
Member

rade commented Jun 26, 2015

Neither the docs nor the usage mention that multiple -H can be specified.

@rade rade assigned tomwilkie and unassigned rade Jun 26, 2015
@tomwilkie tomwilkie force-pushed the 1003-proxy-unix-socket branch 3 times, most recently from 5e039b0 to eeae40e Compare June 26, 2015 14:03
@rade rade assigned rade and unassigned tomwilkie Jun 26, 2015
port=${addr#*:}
echo "${1}tcp://${host:-$PROXY_HOST}:${port:-$PROXY_PORT}"
addr=$(echo ${addr} | sed "s/0.0.0.0/$PROXY_HOST/g")
echo "${1}${addr}"

This comment was marked as abuse.

rade added a commit that referenced this pull request Jun 26, 2015
Make proxy listen on unix:///var/run/weave.sock

Closes #1003
@rade rade merged commit 906ff21 into master Jun 26, 2015
@rade rade deleted the 1003-proxy-unix-socket branch June 26, 2015 15:44
@rade rade modified the milestone: 1.1.0 Jul 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants