summaryrefslogtreecommitdiffstats
path: root/docker/vespa-ci.sh
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-06-15 13:08:57 +0200
committerBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-06-15 14:02:53 +0200
commit93ce6b92792711d917f020eea93c874caefad61d (patch)
tree12263f2a4843b62b2560d92e8d78a33224f78668 /docker/vespa-ci.sh
parent29402a58b7da70363549f4f8b9a3a1e571bb808a (diff)
Install build dependencies when building Docker image
Installation of build dependencies during container startup does not work as it requires root permission.
Diffstat (limited to 'docker/vespa-ci.sh')
-rwxr-xr-xdocker/vespa-ci.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/vespa-ci.sh b/docker/vespa-ci.sh
index bdb5dc8cd2f..d3d213fa87b 100755
--- a/docker/vespa-ci.sh
+++ b/docker/vespa-ci.sh
@@ -16,6 +16,11 @@ BUILD_DOCKER_IMAGE="vespabuild"
CI_DOCKER_IMAGE="vespaci"
docker build -t "$BUILD_DOCKER_IMAGE" -f Dockerfile.build .
+
+# Create a temporarily copy of the rpm spec file inside docker directory so it can be referenced by the Dockerfile
+rm -rf tmp; mkdir tmp
+cp -p ../dist/vespa.spec tmp/vespa.spec
+
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