Skip to content

Commit 3ae70b7

Browse files
authored
[Improvement-17249][Doc] Improve development-environment-setup documentation with plugins (#17258)
1 parent 09d15a0 commit 3ae70b7

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

docs/docs/en/contribute/development-environment-setup.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ DolphinScheduler will release new Docker images after it released, you could fin
6060

6161
- If you want to modify DolphinScheduler source code, and build Docker images locally, you can run when finished the modification
6262

63+
> -Pstaging contains plugins, suitable for development and testing as well as offline deployment without a network environment
64+
> -Prelease does not contain plugins, suitable for production environments, and plugins can be downloaded on demand from a network that can access plugins
65+
6366
```shell
6467
cd dolphinscheduler
6568
./mvnw -B clean package \
6669
-Dmaven.test.skip \
6770
-Dspotless.skip = true \
6871
-Ddocker.tag=<TAG> \
69-
-Pdocker,release
72+
-Pdocker,[release|staging]
7073
```
7174

7275
When the command is finished you could find them by command `docker images`.
@@ -80,7 +83,7 @@ cd dolphinscheduler
8083
-Dspotless.skip = true \
8184
-Ddocker.tag=<TAG> \
8285
-Ddocker.hub=<HUB_URL> \
83-
-Pdocker,release
86+
-Pdocker,[release|staging]
8487
```
8588

8689
- If you want to modify DolphinScheduler source code, and also want to add customize dependencies of Docker image, you can modify the definition of Dockerfile after modifying the source code. You can run the following command to find all Dockerfile files.

docs/docs/zh/contribute/development-environment-setup.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ DolphinScheduler 每次发版都会同时发布 Docker 镜像,你可以在 [Do
5757

5858
* 如果你想基于源码进行改造,然后在本地构建Docker镜像,可以在代码改造完成后运行
5959

60+
> -Pstaging 包含插件,适合开发和测试以及无网络环境离线部署
61+
> -Prelease 不包含插件,适合生产环境,有能访问插件的网络可以按需下载
62+
6063
```shell
6164
cd dolphinscheduler
6265
./mvnw -B clean package \
6366
-Dmaven.test.skip \
6467
-Dspotless.skip=true \
6568
-Ddocker.tag=<TAG> \
66-
-Pdocker,release
69+
-Pdocker,[release|staging]
6770
```
6871

6972
当命令运行完了后你可以通过 `docker images` 命令查看刚刚创建的镜像
@@ -77,7 +80,7 @@ cd dolphinscheduler
7780
-Dspotless.skip = true \
7881
-Ddocker.tag=<TAG> \
7982
-Ddocker.hub=<HUB_URL> \
80-
-Pdocker,release
83+
-Pdocker,[release|staging]
8184
```
8285

8386
* 如果你不仅需要改造源码,还想要自定义 Docker 镜像打包的依赖,可以在修改源码的同时修改 Dockerfile 的定义。你可以运行以下命令找到所有的 Dockerfile 文件

0 commit comments

Comments
 (0)