Warpdrive for Linux currently builds only on CentOS 7.
There is a Dockerfile based on CentOS 7 image containing all the dependencies needed for building and developing Warpdrive.
- First you need to build the Dockerfile:
docker build -t warpdrive .- Then you can start a container binding volumes for
warpdrive,flightsql-odbcandarrowrepos:
docker run -it \
-v /PATH_TO_LOCAL_WARPDRIVE_REPO:/opt/warpdrive \
-v /PATH_TO_LOCAL_FLIGHTSQL_ODBC_REPO:/opt/flightsql-odbc \
-v /PATH_TO_LOCAL_ARROW_REPO:/opt/arrow \
--rm --name warpdrive \
--add-host=host.docker.internal:host-gateway \
warpdrive:latest bashNOTE: Be sure to replace PATH_TO_LOCAL_..._REPO to the actual paths on your computer.
- To build Warpdrive inside of this container, simply run
./build.sh.
The build will generate a binary /opt/warpdrive/_build/release/libarrow-odbc.so. which is the driver to be loaded on ODBC tools such as odbcinst and iodbc.
- To run the ODBC Integration tests (in the container)
export DSN=FlightSQL
./_build/release/warpdrive_tests > tests.log