Browse Source

[doc] Correct custom jdbc driver for K8s Doc (#10768)

3.1.0-release
旺阳 2 years ago committed by GitHub
parent
commit
2d8b4932b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      docs/docs/en/guide/installation/kubernetes.md
  2. 17
      docs/docs/zh/guide/installation/kubernetes.md

9
docs/docs/en/guide/installation/kubernetes.md

@ -199,7 +199,10 @@ FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-<service>:<version
# For example
# FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-tools:<version>
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/lib
# Attention Please, If the build is dolphinscheduler-tools image
# You need to change the following line to: COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/tools/libs
# The other services don't need any changes
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/libs
```
3. Build a new docker image including MySQL driver:
@ -248,10 +251,10 @@ FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-<service>:<version
# FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-worker:<version>
# If you want to support MySQL Datasource
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/lib
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/libs
# If you want to support Oracle Datasource
COPY ojdbc8-19.9.0.0.jar /opt/dolphinscheduler/lib
COPY ojdbc8-19.9.0.0.jar /opt/dolphinscheduler/libs
```
3. Build a new docker image including MySQL or Oracle driver:

17
docs/docs/zh/guide/installation/kubernetes.md

@ -197,10 +197,13 @@ kubectl scale --replicas=6 sts dolphinscheduler-worker -n test # with test names
```
FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-<service>:<version>
# For example
# 例如
# FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-tools:<version>
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/lib
# 注意,如果构建的是dolphinscheduler-tools镜像
# 需要将下面一行修改为COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/tools/libs
# 其他服务保持不变即可
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/libs
```
3. 构建一个包含 MySQL 驱动包的新镜像:
@ -245,14 +248,14 @@ externalDatabase:
```
FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-<service>:<version>
# For example
# 例如
# FROM dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler-worker:<version>
# If you want to support MySQL Datasource
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/lib
# 如果你想支持 MySQL 数据源
COPY mysql-connector-java-8.0.16.jar /opt/dolphinscheduler/libs
# If you want to support Oracle Datasource
COPY ojdbc8-19.9.0.0.jar /opt/dolphinscheduler/lib
# 如果你想支持 Oracle 数据源
COPY ojdbc8-19.9.0.0.jar /opt/dolphinscheduler/libs
```
3. 构建一个包含 MySQL 或者 Oracle 驱动包的新镜像:

Loading…
Cancel
Save