On Linux, the default storage device is devicemapper with loopback device and max 10GB container size. This size is too small for a full build. Please see here and here to overcome this limitation.
Execute ./build-vespa.sh <Vespa version number>
to build Vespa from this source code.
The produced rpms will be available in this folder after compilation. The version number will be compiled into binaries, but has no other meaning than that.
Execute ./vespa-ci.sh <git commit>
to build and test a specific branch/tag/commit.
Execute ./build-vespa-image.sh <Vespa version number>
to build a Docker image (vesparun) which has the rpms
from the build step (or downloaded rpms into this folder) installed.
Execute ./run-vespa.sh <Vespa version number>
to start Vespa.
This starts a Docker container using the Docker image (vesparun) from the previous step. Vespa will be started inside the container.
Execute ./enter-build-container.sh
to enter the Vespa build environment inside a Docker container.
The container is entered at the root of the Vespa source repository. Follow the build sections in README.md to build and test.
-
Use
docker logs CONTAINER
for output - useful if the commands above fail. -
If the build fails, start from scratch:
docker rmi -f vesparun vespabuild
- then build again. Clean local docker if docker image disk full:docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
-
Directory renamed before its status could be extracted can be caused by 1219 - workaround (from the issue): "It may be an overlay storage driver issue - you can add
{"storage-driver":"aufs"}
in the advanced daemon preferences pane and see if that makes a difference."