Skip to main content

Build with Container

Build KWDB using Docker

Build Steps

Pull Code

git clone https://gitee.com/kwdb/kwdb.git
cd kwdb

Initialize & Pull Submodules

git submodule init
git submodule update

Create Container and Mount Project Directory

cd ..
docker run -it --privileged -v .kwdb:/home/inspur/src/gitee.com/kwbasedb kwdb/kwdb_comp_env bash

Start Compilation

cd kwbasedb
GOPATH=/home/inspur GO111MODEL=off make BUILD_TYPE=Release install -j

Domestic Mirrors

Similarly, we provide domestic mirrors for the build tools. Simply replace kwdb/kwdb_comp_env in the docker command above:

  • ARM64 version: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kwdb/kwdb_comp_env:latest-linuxarm64
  • X86 version: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kwdb/kwdb_comp_env:latest

Known Issues

  • Compilation error c++: fatal error: Killed signal terminated program cc1plus: This is caused by insufficient docker memory. It is recommended to allocate at least 8GB of memory to the container. If the error persists, continue increasing the memory.