aboutsummaryrefslogtreecommitdiffstats
path: root/docker/build-vespa.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/build-vespa.sh')
-rwxr-xr-xdocker/build-vespa.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/build-vespa.sh b/docker/build-vespa.sh
index d19c1fc8dc4..9e8db6ab215 100755
--- a/docker/build-vespa.sh
+++ b/docker/build-vespa.sh
@@ -14,5 +14,10 @@ VESPA_VERSION=$1
DOCKER_IMAGE="centos:latest"
docker pull ${DOCKER_IMAGE}
-docker run --rm -v $(pwd)/..:/vespa --entrypoint /vespa/docker/build/build-vespa-internal.sh "$DOCKER_IMAGE" "$VESPA_VERSION" "$(id -u)" "$(id -g)"
+# The RPMs will be put in the same directory as this script (/vespa/docker
+# within the container)
+docker run -w /vespa --rm -v $(pwd)/..:/vespa \
+ --entrypoint /vespa/docker/build/build-vespa-internal.sh \
+ "$DOCKER_IMAGE" \
+ "$VESPA_VERSION" "$(id -u)" "$(id -g)" /tmp/rpmbuild /vespa/docker