leemit / docker-build-ardb

Compile multiple versions of ARDB with the LMDB, LevelDB and WiredTiger database storage engines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build ARDB

Build multiple variations of ARDB with the following backend database storage engines:

  • LMDB: dynomitedb-lmdb
  • LevelDB: dynomitedb-leveldb
  • WiredTiger: dynomitedb-wiredtiger

Compiling ARDB has two discrete steps:

  1. Build the build-ardb Docker image (automated via DockerHub)
  2. Compile multiple ARDB binaries each with a different database storage engine: LMDB, LevelDB, WiredTiger

The build-ardb Docker image is a clean, reusable build environment for ARDB.

Run the build-ardb container to compile ARDB.

Compile ARDB

Run build-ardb to compile ARDB with each of the following database storage engines:

  • LMDB: dynomitedb-lmdb
  • LevelDB: dynomitedb-leveldb
  • WiredTiger: dynomitedb-wiredtiger

First, clone and cd into the ardb git repo.

mkdir -p ~/repos/ && cd $_

git clone https://github.com/DynomiteDB/ardb.git

cd ~/repos/ardb

Build ARDB.

docker run -it --rm -v $PWD:/src dynomitedb/build-ardb -v 0.8.2

Create a debug build of ARDB.

docker run -it --rm -v $PWD:/src dynomitedb/build-ardb -d

Clean the build directory.

docker run -it --rm -v $PWD:/src dynomitedb/build-ardb -t clean

Manually build the build-ardb image

The build-ardb Docker image, which is used to compile ARDB, is automatically built via DockerHub.

The automated build is located at https://hub.docker.com/r/dynomitedb/build-ardb.

However, you can manually build the build-ardb image by executing the commands shown below.

First, clone the docker-build-ardb repo and cd into the docker-build-ardb directory.

mkdir -p ~/repos/ && cd $_

git clone https://github.com/DynomiteDB/docker-build-ardb.git

cd ~/repos/docker-build-ardb

Create the build-ardb image.

docker build -t dynomitedb/build-ardb .

About

Compile multiple versions of ARDB with the LMDB, LevelDB and WiredTiger database storage engines.

License:Apache License 2.0


Languages

Language:Shell 100.0%