-
Notifications
You must be signed in to change notification settings - Fork 712
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
Move bulk of scope script logic into entrypoint.sh, extend testing #524
Conversation
453db41
to
4af13ad
Compare
@@ -15,4 +15,7 @@ echo Installing weave | |||
for HOST in $HOSTS; do | |||
run_on $HOST "sudo curl -sL git.io/weave -o /usr/local/bin/weave" | |||
run_on $HOST "sudo chmod a+x /usr/local/bin/weave" | |||
weave_on $HOST setup |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
aee5a03
to
441b014
Compare
Also - Add test for clustering without weave. - Update test template for docker 1.8 - Prefetch images - Stop all containers when test finishes. - Add small sleep after weave launch, and supply all the hosts to ensure IPAM works correctly.
Why not move most of the logic straight into the go code? instead of the bash? Just expediency? |
WEAVEDNS_CONTAINER_NAME=weavedns | ||
HOSTNAME=scope | ||
DOMAINNAME=weave.local | ||
FQDN=$HOSTNAME.$DOMAINNAME | ||
DOCKER_BRIDGE=${DOCKER_BRIDGE:-docker0} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Yeah we should do that at some point; that would help with #510. But thats a bigger change, and this gets us some of the way there for now. |
@@ -73,15 +107,34 @@ while true; do | |||
shift | |||
done | |||
|
|||
echo "$APP_ARGS" >/etc/weave/scope-app.args | |||
echo "$PROBE_ARGS" >/etc/weave/scope-probe.args | |||
if is_running $WEAVE_CONTAINER_NAME; then |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Move bulk of scope script logic into entrypoint.sh, extend testing
Fixes #523 by moving the detection and communication with Weave into the Scope container (and out of the scope script).
Will also help towards #329.
Also