Skip to content

Commit

Permalink
[Optimize][Doc]Doc optimize (DataLinkDC#1375)
Browse files Browse the repository at this point in the history
* doc_optimize

* doc_optimize

* doc_optimize

* doc_optimize change dir lower
  • Loading branch information
zackyoungh authored Dec 4, 2022
1 parent 097b09f commit d69a335
Show file tree
Hide file tree
Showing 25 changed files with 494 additions and 134 deletions.
20 changes: 20 additions & 0 deletions dlink-doc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

FROM flink:1.14.5 as production-stage

USER root
COPY ./auto.sh /opt/dinky/
COPY ./lib /opt/dinky/lib/
COPY ./plugins /opt/dinky/plugins/
COPY ./config /opt/dinky/config/
COPY ./jar /opt/dinky/jar/
WORKDIR /opt/dinky/

RUN cp /opt/flink/lib/*.jar /opt/dinky/plugins/
RUN mkdir -p /opt/dinky/run
RUN mkdir -p /opt/dinky/logs
RUN touch /opt/dinky/logs/dlink.log
RUN chmod -R 777 /opt/dinky/

EXPOSE 8888

CMD ./auto.sh restart && tail -f /opt/dinky/logs/dlink.log
8 changes: 8 additions & 0 deletions dlink-doc/DockerfileMysql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mysql:5.7 as production-stage

ENV MYSQL_ROOT_PASSWORD=dlink
ENV MYSQL_DATABASE=dlink
ENV MYSQL_USER=dlink
ENV MYSQL_PASSWORD=dlink

COPY ./sql/dinky.sql /docker-entrypoint-initdb.d/01-dinky.sql
5 changes: 5 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ const config = {
label: 'FAQ',
position: 'right',
},
{
href: 'https://github.com/orgs/DataLinkDC/projects/1',
label: 'Roadmap',
position: 'right',
},
{
href: 'https://github.com/DataLinkDC/dlink',
label: 'GitHub',
Expand Down
4 changes: 4 additions & 0 deletions docs/i18n/en/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"message": "GitHub",
"description": "Navbar item with label GitHub"
},
"item.label.RoadMap": {
"message": "RoadMap",
"description": "Navbar item with label GitHub"
},
"item.label.如何参与": {
"message": "如何参与",
"description": "Navbar item with label 如何参与"
Expand Down
4 changes: 4 additions & 0 deletions docs/i18n/zh/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"message": "GitHub",
"description": "Navbar item with label GitHub"
},
"item.label.RoadMap": {
"message": "RoadMap",
"description": "Navbar item with label GitHub"
},
"item.label.Next": {
"message": "Next",
"description": "Navbar item with label Next"
Expand Down
4 changes: 0 additions & 4 deletions docs/versioned_docs/version-0.7/build_deploy/_category_.json

This file was deleted.

This file was deleted.

This file was deleted.

64 changes: 0 additions & 64 deletions docs/versioned_docs/version-0.7/concept_architecture/concept.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/versioned_docs/version-0.7/deploy_guide/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "部署指南",
"position": 6
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 2
id: build
title: 编译
---
Expand Down Expand Up @@ -221,7 +221,7 @@ mvn clean install -Dmaven.test.skip=true
npm install --force
npm run build
```
编译后的产物在 `dlink-web/dist` 下面,如需部署,请查看相关部署教程。[nginx中配置-dinky](./deploy#nginx中配置-dinky可选)
编译后的产物在 `dlink-web/dist` 下面,如需部署,请查看相关部署教程。[nginx中配置-dinky](versioned_docs/version-0.7/developer_guide/deploy.mdy.md#nginx中配置-dinky可选)

#### 后端编译
编译maven的时候,移除web profile即可。在-P 后面加: `!web`,如:
Expand Down Expand Up @@ -250,7 +250,7 @@ docker push registry.cn-beijing.aliyuncs.com/yue-open/dinky:0.6.4-flink1.15



以上就是 Dinky 源码编译的详细步骤,Dinky 如何安装部署,请查看下一章节[部署](./deploy)
以上就是 Dinky 源码编译的详细步骤,Dinky 如何安装部署,请查看下一章节[部署](versioned_docs/version-0.7/developer_guide/deploy.mdy.md)



Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 2
sidebar_position: 3
id: deploy
title: 部署
---
Expand Down
Loading

0 comments on commit d69a335

Please sign in to comment.