1. Run git clone may not been executed when docker use cached layer, so I change it to copy latest code from local. 2. Before building docker image, please clone the latest source code firstly.
3.2 KiB
3.2 KiB
Doris Develop Environment based on docker
0. Download the latest source code
git clone https://github.com/apache/incubator-doris.git
cp incubator-doris/docker/Dockerfile .
1. Build docker image
docker build -t doris:v1.0 .
-- doris is docker image repository name and base is tag name , you can change them to what you like
2. Use docker image
docker run -it --name doris doris:v1.0
// if you want to build your local code ,you should execute:
docker run -it --name test -v **/incubator-doris:/var/local/incubator-doris doris:v1.0
// then build source code
cd /var/local/incubator-doris
sh build.sh -- build project
//execute unit test
sh run-ut.sh --run -- run unit test
3. Thirdparty list
The detail list of thirdparty we mirrored as following:
- libevent-20180622-24236aed01798303745470e6c498bf606e88724a.zip
- openssl-1.0.2k.tar.gz
- thrift-0.9.3.tar.gz
- llvm-3.4.2.src.tar.gz
- cfe-3.4.2.src.tar.gz
- compiler-rt-5.0.0.src.tar.xz
- protobuf-3.5.1.tar.gz
- gflags-2.2.0.tar.gz
- glog-0.3.3.tar.gz
- googletest-release-1.8.0.tar.gz
- snappy-1.1.4.tar.gz
- gperftools-2.7.tar.gz
- zlib-1.2.11.tar.gz
- lz4-1.7.5.tar.gz
- bzip2-1.0.6.tar.gz
- lzo-2.10.tar.gz
- rapidjson-1.1.0.tar.gz
- curl-7.54.0.tar.gz
- re2-2017-05-01.tar.gz
- boost_1_64_0.tar.gz
- mysql-5.7.18.tar.gz
- boost_1_59_0.tar.gz
- leveldb-1.20.tar.gz
- brpc-0.9.0.tar.gz
- rocksdb-5.14.2.tar.gz
- librdkafka-0.11.6-RC5.tar.gz