Skip to content

Commit

Permalink
Merge branch '1.0'
Browse files Browse the repository at this point in the history
Conflicts:
	weave
  • Loading branch information
rade committed Aug 11, 2015
2 parents c2147f8 + 12ed5cc commit d0ed225
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions test/685_proxy_weave_run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash

. ./config.sh

C1=10.2.1.13

start_suite "Start containers with 'weave run' via proxy"

weave_on $HOST1 launch
weave_on $HOST1 launch-proxy

proxy start_container $HOST1 $C1/24 --name=c1
# check we get exactly one IP back, the one specified
assert "weave_on $HOST1 ps c1 | cut -d ' ' -f 3-" $C1/24

end_suite
4 changes: 2 additions & 2 deletions weave
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ "$1" = "run" ] ; then
shift $(dns_arg_count "$@")
collect_cidr_args "$@"
shift $CIDR_ARG_COUNT
CONTAINER=$(docker $DOCKER_CLIENT_ARGS run $DNS_ARGS -d "$@")
CONTAINER=$(docker $DOCKER_CLIENT_ARGS run -e WEAVE_CIDR=none $DNS_ARGS -d "$@")
exec_remote attach $CIDR_ARGS --or-die $CONTAINER >/dev/null
echo $CONTAINER
exit 0
Expand Down Expand Up @@ -1352,7 +1352,7 @@ case "$COMMAND" in
shift $(dns_arg_count "$@")
collect_cidr_args "$@"
shift $CIDR_ARG_COUNT
CONTAINER=$(docker run $DNS_ARGS -d "$@")
CONTAINER=$(docker run -e WEAVE_CIDR=none $DNS_ARGS -d "$@")
create_bridge
ipam_cidrs_or_die $CONTAINER $CIDR_ARGS
with_container_netns_or_die $CONTAINER attach $ALL_CIDRS
Expand Down

0 comments on commit d0ed225

Please sign in to comment.