Files
docker-docs/buildscripts/integrationtest.sh
Ying Li 7b7b81526a Move .build to buildscripts
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-24 10:37:36 -07:00

24 lines
453 B
Bash
Executable File

#!/usr/bin/env bash
function cleanup {
docker-compose -f development.yml stop
# if we're in CircleCI, we cannot remove any containers
if [[ -z "${CIRCLECI}" ]]; then
docker-compose -f development.yml rm -f
fi
}
if [[ -z "${CIRCLECI}" ]]; then
BUILDOPTS="--force-rm"
fi
set -e
set -x
cleanup
docker-compose -f development.yml build ${BUILDOPTS}
docker-compose -f development.yml up --abort-on-container-exit
trap cleanup SIGINT SIGTERM EXIT