You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/12/20 13:01:00 UTC

[incubator-streampark-website] branch dev updated: [doc][fix] should use raw content url for wget (#166)

This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new 3505752c [doc][fix] should use raw content url for wget (#166)
3505752c is described below

commit 3505752c526d0ab5a5acbb4575a59f966d736351
Author: Ruibin Xing <xi...@gmail.com>
AuthorDate: Tue Dec 20 21:00:55 2022 +0800

    [doc][fix] should use raw content url for wget (#166)
---
 .../current/user-guide/4-dockerDeployment.md       | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/4-dockerDeployment.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/4-dockerDeployment.md
index 77516f8b..abc7d2f9 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/4-dockerDeployment.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/4-dockerDeployment.md
@@ -22,9 +22,9 @@ sidebar_position: 4
 该方式适用于入门学习、熟悉功能特性
 #### 部署
 
-```html
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/docker-compose.yaml
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/.env
+```sh
+wget https://raw.githubusercontent.com/apache/incubator-streampark/dev/deploy/docker/docker-compose.yaml
+wget https://raw.githubusercontent.com/apache/incubator-streampark/dev/deploy/docker/.env
 docker-compose up -d
 ```
 服务启动后,可以通过 http://localhost:10000 访问 StreamPark,同时也可以通过 http://localhost:8081访问Flink。访问StreamPark链接后会跳转到登陆页面,StreamPark 默认的用户和密码分别为 admin 和 streampark。想要了解更多操作请参考用户手册快速上手。
@@ -49,47 +49,47 @@ docker-compose up -d
 ### 沿用已有的 Mysql 服务
 该方式适用于企业生产,你可以基于docker快速部署strempark并将其和线上数据库进行关联
 注意:部署支持的多样性是通过.env这个配置文件来进行维护的,要保证目录下有且仅有一个.env文件
-```
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/docker-compose.yaml
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/mysql/.env
+```sh
+wget https://raw.githubusercontent.com/apache/incubator-streampark/dev/deploy/docker/docker-compose.yaml
+wget https://raw.githubusercontent.com/apache/incubator-streampark/blob/dev/deploy/docker/mysql/.env
 vim .env
 ```
 修改对应的连接信息
-```html
+```sh
 SPRING_PROFILES_ACTIVE=mysql
 SPRING_DATASOURCE_URL=jdbc:mysql://localhost:3306/streampark?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowPublicKeyRetrieval=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
 SPRING_DATASOURCE_USERNAME=root
 SPRING_DATASOURCE_PASSWORD=streampark
 ```
 
-```html
+```sh
 docker-compose up -d
 ```
 ### 沿用已有的 Pgsql 服务
 ```html
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/docker-compose.yaml
-wget https://github.com/apache/incubator-streampark/blob/dev/deploy/docker/pgsql/.env
+wget https://raw.githubusercontent.com/apache/incubator-streampark/blob/dev/deploy/docker/docker-compose.yaml
+wget https://raw.githubusercontent.com/apache/incubator-streampark/blob/dev/deploy/docker/pgsql/.env
 vim .env
 ```
 修改对应的连接信息
-```html
+```sh
 SPRING_PROFILES_ACTIVE=pgsql
 SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/streampark?stringtype=unspecified
 SPRING_DATASOURCE_USERNAME=postgres
 SPRING_DATASOURCE_PASSWORD=streampark
 ```
-```html
+```sh
 docker-compose up -d
 ```
 
 ## 基于源码构建镜像进行StreamPark部署
-```html
+```sh
 git clone https://github.com/apache/incubator-streampark.git
 cd incubator-streampark/deploy/docker
 vim docker-compose.yaml
 ```
 
-```html
+```sh
     build:
       context: ../..
       dockerfile: deploy/docker/console/Dockerfile
@@ -97,13 +97,13 @@ vim docker-compose.yaml
 ```
 ![](/doc/image/streampark_source_generation_image.png)
 
-```html
+```sh
 cd ../..
 ./build.sh
 ```
 ![](/doc/image/streampark_build.png)
 
-```html
+```sh
 cd deploy/docker
 docker-compose up -d
-```
\ No newline at end of file
+```