Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/en/installing/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ Note: For different versions of Oris, you need to download the corresponding mir

`$ docker run -it apachedoris/doris-dev:build-env`

If you want to compile the local Doris source code, you can mount the path:
It is recommended to run the container by mounting the local Doris source directory, so that the compiled binary file will be stored in the host machine and will not disappear because the container exits.

At the same time, it is recommended to mount the maven `.m2` directory in the mirror to the host directory at the same time to prevent repeated downloading of maven's dependent libraries each time the compilation is started.

```
$ docker run -it -v /your/local/incubator-doris-DORIS-x.x.x-release/:/root/incubator-doris-DORIS-x.x.x-release/ apachedoris/doris-dev:build-env
$ docker run -it -v /your/local/.m2:/root/.m2 -v /your/local/incubator-doris-DORIS-x.x.x-release/:/root/incubator-doris-DORIS-x.x.x-release/ apachedoris/doris-dev:build-env
```

3. Download source code
Expand Down Expand Up @@ -123,4 +125,4 @@ WITH_MYSQL=1 WITH_LZO=1 sh build.sh
Note that when users rely on these two third-party libraries, Doris is not used under the Apache License 2.0 by default. Please pay attention to the GPL related agreements.

* [1] mysql-5.7.18
* [2] lzo-2.10
* [2] lzo-2.10
8 changes: 5 additions & 3 deletions docs/zh-CN/installing/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ under the License.

`$ docker run -it apachedoris/doris-dev:build-env`

如果你希望编译本地 Doris 源码,则可以挂载路径:

建议以挂载本地 Doris 源码目录的方式运行镜像,这样编译的产出二进制文件会存储在宿主机中,不会因为镜像退出而消失。

同时,建议同时将镜像中 maven 的 `.m2` 目录挂载到宿主机目录,以防止每次启动镜像编译时,重复下载 maven 的依赖库。

```
$ docker run -it -v /your/local/incubator-doris-DORIS-x.x.x-release/:/root/incubator-doris-DORIS-x.x.x-release/ apachedoris/doris-dev:build-env
$ docker run -it -v /your/local/.m2:/root/.m2 -v /your/local/incubator-doris-DORIS-x.x.x-release/:/root/incubator-doris-DORIS-x.x.x-release/ apachedoris/doris-dev:build-env
```

3. 下载源码
Expand Down
6 changes: 5 additions & 1 deletion fe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,15 @@ under the License.
</repositories>

<pluginRepositories>
<!-- for cup-maven-plugin -->
<pluginRepository>
<id>spring-plugins</id>
<url>https://repo.spring.io/plugins-release/</url>
</pluginRepository>
<!-- for cup-maven-plugin -->
<pluginRepository>
<id>cloudera-plugins</id>
<url>https://repository.cloudera.com/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
Expand Down