blob: bdb5dc8cd2f02f04366644a7f633da7d3059f70e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e
set -x
if [ $# -ne 1 ]; then
echo "Usage: $0 <git commit>"
exit 1
fi
DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd $DIR
GIT_COMMIT=$1
BUILD_DOCKER_IMAGE="vespabuild"
CI_DOCKER_IMAGE="vespaci"
docker build -t "$BUILD_DOCKER_IMAGE" -f Dockerfile.build .
docker build -t "$CI_DOCKER_IMAGE" -f Dockerfile.ci .
docker run --rm -v $(pwd)/..:/vespa --entrypoint /vespa-ci-internal.sh "$CI_DOCKER_IMAGE" "$GIT_COMMIT" \
2>&1 | tee vespa-ci-${GIT_COMMIT}-$(date +%Y-%m-%dT%H:%M:%S%z).log
|