Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
ac222140e7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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" \
   "$@"