mirror of
https://github.com/docker/compose.git
synced 2025-05-11 10:00:17 +02:00
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 <ben@firshman.co.uk>
18 lines
340 B
Bash
Executable File
18 lines
340 B
Bash
Executable File
#!/bin/bash
|
|
# See CONTRIBUTING.md for usage.
|
|
|
|
set -ex
|
|
|
|
TAG="docker-compose:$(git rev-parse --short HEAD)"
|
|
|
|
docker build -t "$TAG" .
|
|
docker run \
|
|
--rm \
|
|
--volume="/var/run/docker.sock:/var/run/docker.sock" \
|
|
-e DOCKER_VERSIONS \
|
|
-e "TAG=$TAG" \
|
|
-e "affinity:image==$TAG" \
|
|
--entrypoint="script/test-versions" \
|
|
"$TAG" \
|
|
"$@"
|