Sign inSign up

stoneatom/stonedb_buildenv

By stoneatom

•Updated over 3 years ago

This is StoneDB Build Docker images

Image
0

2.3K

stoneatom/stonedb_buildenv repository overview

⁠StoneDB Build

This is the StoneDB build-environment image. You can download it to compile StoneDB in a Docker image.

⁠Quick Start

⁠Pull and run the StoneDB build-environment container

$ docker pull stoneatom/stonedb_buildenv
$ docker images
REPOSITORY                   TAG       IMAGE ID       CREATED          SIZE
stoneatom/stonedb_buildenv   latest    a481af987d1f   42 minutes ago   1.86GB
centos                       7         eeb6ee3f44bd   9 months ago     204MB

$ cd /data/
$ git clone https://github.com/stoneatom/stonedb.git
$ docker run -d -p 23306:3306 -v /data:/home/ stoneatom/stonedb_buildenv:latest
$ docker ps
CONTAINER ID   IMAGE                               COMMAND            CREATED         STATUS         PORTS                                         NAMES
1e046c3129e0   stoneatom/stonedb_buildenv:latest   "/usr/sbin/init"   3 seconds ago   Up 2 seconds   0.0.0.0:23306->3306/tcp, :::23306->3306/tcp   awesome_hermann

⁠Build StoneDB in the container

$ docker exec -it 1e046c3129e0 bash
[root@1e046c3129e0 /] $ cd /home/
[root@1e046c3129e0 home] $ ls
stonedb
[root@1e046c3129e0 home] $ cd stonedb/
[root@1e046c3129e0 stonedb] $ mkdir build && cd build/
[root@1e046c3129e0 build] $ cmake ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/stonedb57/install \
-DMYSQL_DATADIR=/stonedb57/install/data \
-DSYSCONFDIR=/stonedb57/install \
-DMYSQL_UNIX_ADDR=/stonedb57/install/tmp/mysql.sock \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITH_STONEDB_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DMYSQL_TCP_PORT=3306 \
-DENABLED_LOCAL_INFILE=1 \
-DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DDOWNLOAD_BOOST=0 \
-DWITH_BOOST=/usr/local/stonedb-boost/ \
-DDOWNLOAD_ROCKSDB=0 \
-DWITH_ROCKSDB=/usr/local/stonedb-gcc-rocksdb/ \
-DWITH_MARISA=/usr/local/stonedb-marisa/

#After the 'cmake' command is completed, run the 'make' and 'make install' commands.
[root@1e046c3129e0 build] $ make -j`nproc`
[root@1e046c3129e0 build] $ make -j`nproc` install

⁠Change log:

⁠v0.1:

gcc 7.3.0

cmake 3.7.2

boost 1.66.0

rocksdb 4.13

marisa 0.7.7

⁠v1.0.1:

rocksdb 4.13 ==> rocksdb 6.12.6

⁠v1.0.2:

fix rocksdb cmake and install

Compatible with StoneDB56 and StoneDB57

StoneDB cmake adds WITH_ROCKSDB and WITH_MARISA to specify where

-DDOWNLOAD_ROCKSDB=0 \
-DWITH_ROCKSDB=/usr/local/stonedb-gcc-rocksdb/ \
-DWITH_MARISA=/usr/local/stonedb-marisa/

⁠debian10_1.0.3 and centos7_1.0.3:

ADD Googletest 1.12.0

Tag summary

Content type

Image

Digest

sha256:5823df777…

Size

693.1 MB

Last updated

about 4 years ago

docker pull stoneatom/stonedb_buildenv