ci 625 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # This should be run inside a container built from the Dockerfile
  3. # at the root of the repo:
  4. #
  5. # $ TAG="docker-compose:$(git rev-parse --short HEAD)"
  6. # $ docker build -t "$TAG" .
  7. # $ docker run --rm --volume="/var/run/docker.sock:/var/run/docker.sock" --volume="$(pwd)/.git:/code/.git" -e "TAG=$TAG" --entrypoint="script/ci" "$TAG"
  8. set -ex
  9. docker version
  10. export DOCKER_VERSIONS=all
  11. STORAGE_DRIVER=${STORAGE_DRIVER:-overlay}
  12. export DOCKER_DAEMON_ARGS="--storage-driver=$STORAGE_DRIVER"
  13. GIT_VOLUME="--volumes-from=$(hostname)"
  14. . script/test-versions
  15. >&2 echo "Building Linux binary"
  16. . script/build-linux-inner