This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
fix create_bridge() bug, patch README install recipe, WEAVE_DOCKER_ARGS=... #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...''
I set WEAVE_DOCKER_ARGS to a null string to facilitate patching it on install with an inline
sed -i
string substitution so that I (and others) can add a --memory=1gb argument to the build of the weave container, or whatever other arguments folks want to feed it.I'm pretty sure that create_bridge() wants to:
not:
at least I could see no joy in trying it the other way.
I found that the weave shell script failed to
docker pull zettio/weave
, and that I made progress only when I explicitly performed that step manually. So I added that to the install recipe in the README.md.I also did a global replace of 'zettio/weave' with $WEAVE_IMAGE and defined that variable at the top of the script, to facilitate maintainance.
So far I have been able to pull and build an image and run a weave container, and to use weave to wrap docker to run other containers assigning them a fixed IP. I'm still sorting out how to set the peer for a weave bridge on one docker host to the weave bridge on another docker host. The documentation seems unclear as to what is expected in that $HOST1 variable, and reading the weaver/weave code reveals no use of a peer attribute in the code, leaving me in doubt as to how and where that argument would be used.