Skip to content

Latest commit

 

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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](https://www.oracle.com/technetwork/java/javase/downloads/index.html). And rename it to `jdk.rpm`.

After preparation, your workspace should like this:

. ├── Dockerfile ├── incubator-doris │   ├── be │   ├── bin │   ├── build.sh │   ├── conf │   ├── DISCLAIMER │   ├── 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