tree: fe0da542cdcef0c796996f519452b46b92a352c5 [path history] [tgz]
  1. Dockerfile
  2. README.md
docker/README.md

Doris Develop Environment based on docker

Preparation

  1. Download the Doris code repo

    $ cd /to/your/workspace/
    $ git clone https://github.com/apache/incubator-doris.git
    
  2. Copy Dockerfile

    $ cd /to/your/workspace/
    $ cp incubator-doris/docker/Dockerfile ./
    
  3. 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  .

doris is docker image repository name and v1.0 is 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