summaryrefslogtreecommitdiffstats
path: root/docker/run-vespa.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/run-vespa.sh')
-rwxr-xr-xdocker/run-vespa.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/docker/run-vespa.sh b/docker/run-vespa.sh
index 4f05c995156..6321f279bdd 100755
--- a/docker/run-vespa.sh
+++ b/docker/run-vespa.sh
@@ -13,11 +13,9 @@ cd $DIR
VESPA_VERSION=$1
DOCKER_IMAGE=vesparun
-docker build -t "$DOCKER_IMAGE" -f Dockerfile.run .
-
if [ "$(uname)" != "Darwin" ]; then
- docker run -d -v $(pwd)/..:/vespa --net=host --privileged --entrypoint /vespa/docker/run-vespa-internal.sh "$DOCKER_IMAGE" "$VESPA_VERSION"
+ docker run -d -v $(pwd)/..:/vespa --net=host --privileged --entrypoint /vespa/docker/run-vespa-internal.sh "$DOCKER_IMAGE":"$VESPA_VERSION"
else
# On OS X, net=host does not work. Need to explicitly expose ports from localhost into container.
- docker run -d -p 8080:8080 -p 19071:19071 -v $(pwd)/..:/vespa --privileged --entrypoint /vespa/docker/run-vespa-internal.sh "$DOCKER_IMAGE" "$VESPA_VERSION"
+ docker run -d -p 8080:8080 -p 19071:19071 -v $(pwd)/..:/vespa --privileged --entrypoint /vespa/docker/run-vespa-internal.sh "$DOCKER_IMAGE":"$VESPA_VERSION"
fi