Doris Develop Environment based on docker
Preparation
-
Download the Doris code repo
$ cd /to/your/workspace/ $ git clone https://github.com/apache/incubator-doris.git -
Copy Dockerfile
$ cd /to/your/workspace/ $ cp incubator-doris/docker/Dockerfile ./ -
Download Oracle JDK(1.8+) RPM
You need to download the Oracle JDK RPM, which can be found here. And rename it to
jdk.rpm.
After preparation, your workspace should like this:
.
├── Dockerfile
├── incubator-doris
│ ├── be
│ ├── bin
│ ├── build.sh
│ ├── conf
│ ├── DISCLAIMER-WIP
│ ├── docker
│ ├── docs
│ ├── env.sh
│ ├── fe
│ ├── ...
├── jdk.rpm
Build docker image
$ cd /to/your/workspace/
$ docker build -t doris:v1.0 .
dorisis docker image repository name andv1.0is tag name, you can change them to whatever you like.
Use docker image
This docker image you just built does not contain Doris source code repo. You need to download it first and map it to the container. (You can just use the one you used to build this image before)
$ docker run -it -v /your/local/path/incubator-doris/:/root/incubator-doris/ doris:v1.0
Then you can build source code inside the container.
$ cd /root/incubator-doris/
$ sh build.sh