diff --git a/docs/en/installing/compilation.md b/docs/en/installing/compilation.md index 172a52fce54cc6..0d4d2c7256d456 100644 --- a/docs/en/installing/compilation.md +++ b/docs/en/installing/compilation.md @@ -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 @@ -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 \ No newline at end of file +* [2] lzo-2.10 diff --git a/docs/zh-CN/installing/compilation.md b/docs/zh-CN/installing/compilation.md index 4dfc571b7d6605..0df6b0e6b4d2d7 100644 --- a/docs/zh-CN/installing/compilation.md +++ b/docs/zh-CN/installing/compilation.md @@ -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. 下载源码 diff --git a/fe/pom.xml b/fe/pom.xml index 1f1217d8a7001d..c7b95371e6d129 100644 --- a/fe/pom.xml +++ b/fe/pom.xml @@ -105,11 +105,15 @@ under the License. - spring-plugins https://repo.spring.io/plugins-release/ + + + cloudera-plugins + https://repository.cloudera.com/content/groups/public/ +