2015-03-23 22:16:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# This should be run inside a container built from the Dockerfile
|
|
|
|
# at the root of the repo:
|
|
|
|
#
|
|
|
|
# $ TAG="docker-compose:$(git rev-parse --short HEAD)"
|
|
|
|
# $ docker build -t "$TAG" .
|
|
|
|
# $ docker run --rm --volume="/var/run/docker.sock:/var/run/docker.sock" --volume="$(pwd)/.git:/code/.git" -e "TAG=$TAG" --entrypoint="script/ci" "$TAG"
|
|
|
|
|
2015-10-13 23:31:44 +02:00
|
|
|
set -ex
|
|
|
|
|
|
|
|
docker version
|
2015-03-23 22:16:14 +01:00
|
|
|
|
|
|
|
export DOCKER_VERSIONS=all
|
2015-10-21 21:26:44 +02:00
|
|
|
STORAGE_DRIVER=${STORAGE_DRIVER:-overlay}
|
|
|
|
export DOCKER_DAEMON_ARGS="--storage-driver=$STORAGE_DRIVER"
|
|
|
|
|
2015-08-25 16:57:21 +02:00
|
|
|
GIT_VOLUME="--volumes-from=$(hostname)"
|
2015-03-23 22:16:14 +01:00
|
|
|
. script/test-versions
|
|
|
|
|
|
|
|
>&2 echo "Building Linux binary"
|
2015-09-01 22:23:04 +02:00
|
|
|
. script/build-linux-inner
|