Browse Source

Add image affinity to test script

This will allow tests to be run on a Swarm. This is being fixed in
Swarm 0.4: https://github.com/docker/swarm/issues/743

Signed-off-by: Ben Firshman <[email protected]>
Ben Firshman 10 years ago
parent
commit
ac222140e7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      script/test

+ 1 - 0
script/test

@@ -11,6 +11,7 @@ docker run \
   --volume="/var/run/docker.sock:/var/run/docker.sock" \
   -e DOCKER_VERSIONS \
   -e "TAG=$TAG" \
+  -e "affinity:image==$TAG" \
   --entrypoint="script/test-versions" \
   "$TAG" \
   "$@"