Skip to content

Commit 050af59

Browse files
committed
fix: resolve merge conflict
Signed-off-by: Daniel Hu <[email protected]>
2 parents 8960db5 + aee216c commit 050af59

File tree

100 files changed

+2425
-1282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2425
-1282
lines changed

.github/ISSUE_TEMPLATE/documentation.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ body:
1414
id: terms
1515
attributes:
1616
label: Please read the documents below.
17-
description: |
18-
1. [Creating a Documentation for DevStream](https://docs.devstream.io/en/latest/development/mkdocs/)
19-
2. [Document Translation(Chinese only)](https://docs.devstream.io/en/latest/development/translation.zh/)
2017
options:
21-
- label: I've read the documents above. (If you want to submit a document type contribution.)
18+
- label: I've read the document [Creating a Documentation for DevStream](https://docs.devstream.io/en/latest/development/mkdocs/) and [Document Translation(Chinese only)](https://docs.devstream.io/en/latest/development/translation.zh/). (If you want to submit a document type contribution.)
2219
required: false

.github/workflows/link-pr.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ on:
55
branches: [ main ]
66
paths:
77
- '**.md'
8+
- '.lycheeignore'
89

910
jobs:
1011
linkChecker:
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v3
1415

15-
- name: Download Exclude Path
16-
run: |
17-
curl https://raw.githubusercontent.com/devstream-io/devstream/main/.lycheeignore --output .lycheeignore
18-
1916
# replace site base url to build MkDocs in local
2017
- name: Replace Base URL
2118
run: |

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ e2e-test-local.yaml
4040

4141
# .devstream
4242
.devstream/
43-
devstream.state
43+
*.state
4444

4545
# e2e
4646
testbin/

.lycheeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
https://github.com/.*/pull/[0-9]+.*
22
https://github.com/.*/issues/[0-9]+.*
33
https://fonts.gstatic.com/
4+
.*\$\{.*\}.*
5+
.*ssh.*
46
.*foo.*
57
.*bar.*
68
.*xxx.*

docs/plugins/argocd.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,15 @@ This plugin installs [ArgoCD](https://argoproj.github.io/cd/) in an existing Kub
88
--8<-- "argocd.yaml"
99
```
1010

11-
Currently, except for `values_yaml`, all the parameters in the example above are mandatory.
11+
### Default Configs
12+
13+
| key | default value | description |
14+
| ---- | ---- | ---- |
15+
| chart.chart_name | argo/argo-cd | argocd's official chart name |
16+
| chart.timeout | 5m | this config will wait 5 minutes to deploy argocd |
17+
| upgradeCRDs | true | default update CRD config |
18+
| chart.wait | true | whether to wait until install is complete |
19+
| repo.url | https://argoproj.github.io/argo-helm | helm repo address |
20+
| repo.name | argo | helm repo name |
21+
22+
Currently, except for `values_yaml` and default configs, all the parameters in the example above are mandatory.

docs/plugins/artifactory.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ If you want to **test the plugin locally**, The following `values_yaml` config
1010

1111
```yaml
1212
values_yaml: |
13-
artifactory:
14-
service:
15-
type: NodePort
16-
nodePort: 30002
17-
nginx:
18-
enabled: false
13+
artifactory:
14+
service:
15+
type: NodePort
16+
nodePort: 30002
17+
nginx:
18+
enabled: false
1919
```
2020
2121
In this configuration
22+
2223
- Postgresql dependencies are automatically created.
2324
- local disks on machines in the cluster are defaulted used for data mounting.
2425
- Using `nodePort` to expose service, You can access `artifactory` by domain `http://{{k8s node IP}}:30002`. The default account name and password are admin/password (please replace the default account password in the production environment).
@@ -43,4 +44,4 @@ This plugin support`Ingress`, `ClusterIP`, `NodePort` and `LoadBalancer` , You c
4344
--8<-- "artifactory.yaml"
4445
```
4546

46-
Currently, except for `values_yaml`, all the parameters in the example above are mandatory.
47+
Currently, except for `values_yaml`, all the parameters in the example above are mandatory.

docs/plugins/artifactory.zh.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010

1111
```yaml
1212
values_yaml: |
13-
artifactory:
14-
service:
15-
type: NodePort
16-
nodePort: 30002
17-
nginx:
18-
enabled: false
13+
artifactory:
14+
service:
15+
type: NodePort
16+
nodePort: 30002
17+
nginx:
18+
enabled: false
1919
```
2020
2121
在该配置下
22+
2223
- helm 会自动创建依赖的 Postgresql;
2324
- 数据挂载的磁盘默认会使用集群上机器的本地磁盘;
2425
- 通过 `NodePort` 对外暴露服务,可使用 `http://{{k8s 节点ip}}:30002` 域名来访问,默认账号名密码为 admin/password (生产环境请替换默认账号密码)。
@@ -34,6 +35,7 @@ values_yaml: |
3435
可以设置 `customVolumes` 和 `customVolumeMounts` 来配置挂载磁盘,具体配置可参考 [Config](https://www.jfrog.com/confluence/display/JFROG/Configuring+the+Filestore)。
3536

3637
#### 网络层配置
38+
3739
该插件支持 `Ingress`, `ClusterIP`, `NodePort`, `LoadBalancer` 对外暴露的模式,可以基于需求进行选择。
3840

3941
### 配置

docs/plugins/gitlab-ce-docker.md

Lines changed: 68 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,83 @@
1-
# gitlab-ce-docker plugin
1+
# gitlab-ce-docker Plugin
22

3-
This plugin installs [Gitlab-CE](https://about.gitlab.com/) in an existing docker, and the container name is `gitlab`.
4-
## Usage
3+
This plugin installs [GitLab](https://about.gitlab.com/) CE(Community Edition) on Docker.
4+
5+
_NOTICE: currently, this plugin support Linux only._
6+
7+
## Background
8+
9+
GitLab officially provides an image [gitlab-ce](https://registry.hub.docker.com/r/gitlab/gitlab-ce). We can use this image to start a container:
10+
11+
```shell
12+
docker run --detach \
13+
--hostname gitlab.example.com \
14+
--publish 443:443 --publish 80:80 --publish 22:22 \
15+
--name gitlab \
16+
--restart always \
17+
--volume $GITLAB_HOME/config:/etc/gitlab \
18+
--volume $GITLAB_HOME/logs:/var/log/gitlab \
19+
--volume $GITLAB_HOME/data:/var/opt/gitlab \
20+
--shm-size 256m \
21+
gitlab/gitlab-ce:rc
22+
```
23+
24+
The variable `$GITLAB_HOME` here pointing to the directory where the configuration, logs, and data files will reside.
25+
26+
We can set this variable by the `export` command:
27+
28+
```shell
29+
export GITLAB_HOME=/srv/gitlab
30+
```
31+
32+
The GitLab container uses host mounted volumes to store persistent data:
33+
34+
| Local location |Container location | Usage |
35+
| --------------------- | ----------------- | ------------------------------------------ |
36+
| `$GITLAB_HOME/data` | `/var/opt/gitlab` | For storing application data |
37+
| `$GITLAB_HOME/logs` | `/var/log/gitlab` | For storing logs |
38+
| `$GITLAB_HOME/config` | `/etc/gitlab` | For storing the GitLab configuration files |
39+
40+
So, we can customize the following configurations:
41+
42+
1. hostname
43+
2. host port
44+
3. persistent data path
45+
4. docker image tag
46+
47+
## Configuration
548

649
Note:
7-
1. the user must be `root` or in `docker` group.
8-
2. https not support now(todo).
50+
1. the user you are using must be `root` or in the `docker` group;
51+
2. `https` isn't supported for now.
952

1053
```yaml
11-
1254
--8<-- "gitlab-ce-docker.yaml"
55+
```
56+
57+
## Some Commands That May Help
58+
59+
- clone code
1360

61+
```shell
62+
export hostname=YOUR_HOSTNAME
63+
export username=YOUR_USERNAME
64+
export project=YOUR_PROJECT_NAME
1465
```
1566

16-
## Next
17-
Here are some commands that may help you:
67+
1. ssh
1868

19-
get password of user root in gitlab-ce-docker
2069
```shell
21-
sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
70+
# port is 22
71+
git clone git@${hostname}/${username}/${project}.git
72+
# port is not 22, 2022 as a sample
73+
git clone ssh://git@${hostname}:2022/${username}/${project}.git
2274
```
2375

24-
git clone:
76+
2. http
77+
2578
```shell
26-
#ssh
27-
# 22 port
28-
git clone git@hostname/.../xxx.git
29-
# if not 22 port
30-
git clone ssh://git@hostname:port/.../xxx.git
31-
32-
# http
33-
# 80 port
34-
git clone http://hostname/.../xxx.git
35-
# if not 80 port
36-
git clone http://hostname:port/.../xxx.git
79+
# port is 80
80+
git clone http://${hostname}/${username}/${project}.git
81+
# port is not 80, 8080 as a sample
82+
git clone http://${hostname}:8080/${username}/${project}.git
3783
```

docs/plugins/gitlab-ce-docker.zh.md

Lines changed: 65 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,81 @@
11
# gitlab-ce-docker 插件
22

3-
这个插件用来在本机已存在的 Docker 上安装 [Gitlab-CE](https://about.gitlab.com/), 容器名为 `gitlab`
4-
## 使用
3+
这个插件用于以 Docker 的方式安装 [GitLab](https://about.gitlab.com/) CE(社区版)。
4+
5+
_注意:目前本插件仅支持 Linux。_
6+
7+
## 背景知识
8+
9+
GitLab 官方提供了 [gitlab-ce](https://registry.hub.docker.com/r/gitlab/gitlab-ce) 镜像,通过这个镜像我们可以实现类似这样的命令来启动一个 GitLab 容器:
10+
11+
```shell
12+
docker run --detach \
13+
--hostname gitlab.example.com \
14+
--publish 443:443 --publish 80:80 --publish 22:22 \
15+
--name gitlab \
16+
--restart always \
17+
--volume $GITLAB_HOME/config:/etc/gitlab \
18+
--volume $GITLAB_HOME/logs:/var/log/gitlab \
19+
--volume $GITLAB_HOME/data:/var/opt/gitlab \
20+
--shm-size 256m \
21+
gitlab/gitlab-ce:rc
22+
```
23+
24+
其中 $GITLAB_HOME 表示的是本地存储卷路径,比如我们可以通过 export 命令来设置这个变量:
25+
26+
```shell
27+
export GITLAB_HOME=/srv/gitlab
28+
```
29+
30+
在上述命令中,我们可以看到这个容器使用了3个存储卷,含义分别如下:
31+
32+
| 本地路径 | 容器内路径 | 用途 |
33+
| --------------------- | ----------------- | ----------------- |
34+
| `$GITLAB_HOME/data` | `/var/opt/gitlab` | 保存应用数据 |
35+
| `$GITLAB_HOME/logs` | `/var/log/gitlab` | 保存日志 |
36+
| `$GITLAB_HOME/config` | `/etc/gitlab` | 保存 GitLab 配置文件 |
37+
38+
在此基础上,我们可以自定义如下一些配置:
39+
40+
1. hostname
41+
2. 本机端口
42+
3. 存储卷路径
43+
4. 镜像版本
44+
45+
## 配置
546

647
注意:
7-
1. 执行本插件的用户,必须在 `docker` 用户组内,或者是 `root`
8-
2. 目前暂不支持 `https` 访问 gitlab
48+
1. 你使用的用户必须是 `root` 或者在 `docker` 用户组里;
49+
2. 目前暂不支持 `https` 方式访问 GitLab。
950

1051
```yaml
11-
1252
--8<-- "gitlab-ce-docker.yaml"
53+
```
54+
55+
## 一些可能有用的命令
56+
57+
- 克隆项目
1358

59+
```shell
60+
export hostname=YOUR_HOSTNAME
61+
export username=YOUR_USERNAME
62+
export project=YOUR_PROJECT_NAME
1463
```
1564

16-
## 可能会用到的命令
65+
1. ssh 方式
1766

18-
查看 gitlab 的 root 用户的密码:
1967
```shell
20-
sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
68+
# port is 22
69+
git clone git@${hostname}/${username}/${project}.git
70+
# port is not 22, 2022 as a sample
71+
git clone ssh://git@${hostname}:2022/${username}/${project}.git
2172
```
2273

23-
克隆项目:
74+
2. http 方式
75+
2476
```shell
25-
#ssh
26-
# 22 port
27-
git clone git@hostname/.../xxx.git
28-
# if not 22 port
29-
git clone ssh://git@hostname:port/.../xxx.git
30-
31-
# http
32-
# 80 port
33-
git clone http://hostname/.../xxx.git
34-
# if not 80 port
35-
git clone http://hostname:port/.../xxx.git
77+
# port is 80
78+
git clone http://${hostname}/${username}/${project}.git
79+
# port is not 80, 8080 as a sample
80+
git clone http://${hostname}:8080/${username}/${project}.git
3681
```

docs/plugins/gitlabci-java.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ This plugin set up Gitlab Pipeline in an existing Gitlab Java repository.
1313
3. If `Deploy` is enabled, you need to offer the Gitlab Kubernetes agent name(see [Gitlab-Kubernetes](https://docs.gitlab.cn/jh/user/clusters/agent/) for more details). This will deploy the new built application to your Kubernetes cluster. This step will use `deployment.yaml` to automatically deploy the application. Please create `manifests` directory in the repository root and create your `deployment.yaml` configuration file in it.
1414

1515
```yaml
16-
1716
--8<-- "gitlabci-java.yaml"
18-
1917
```

docs/plugins/gitlabci-java.zh.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
3. 如果`Deploy`选项被开启,你需要提供Gitlab配置的Kubernetes代理名称(设置详情参照[Gitlab-Kubernetes](https://docs.gitlab.cn/jh/user/clusters/agent/))。这会将新构建的应用部署至上面提供的Kubernetes集群中。该步骤会使用`deployment.yaml`来自动部署应用,请在仓库根目录下创建`manifests`目录,并在其中新建你的`deployment.yaml`配置文件。
1212

1313
```yaml
14-
1514
--8<-- "gitlabci-java.yaml"
16-
1715
```

docs/plugins/harbor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ If you want to **test the plugin locally**, The following `values_yaml` config
1010

1111
```yaml
1212
values_yaml: |
13+
externalURL: http://127.0.0.1
1314
expose:
1415
type: nodePort
1516
tls:
@@ -25,6 +26,7 @@ values_yaml: |
2526
```
2627
2728
In this configuration
29+
2830
- Postgresql and Redis dependencies are automatically created.
2931
- local disks on machines in the cluster are defaulted used for data mounting.
3032
- Only the `harbor` main program is installed, not the rest of the plug-ins.

docs/plugins/harbor.zh.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
```yaml
1212
values_yaml: |
13+
externalURL: http://127.0.0.1
1314
expose:
1415
type: nodePort
1516
tls:
@@ -25,6 +26,7 @@ values_yaml: |
2526
```
2627
2728
在该配置下
29+
2830
- helm 会自动创建依赖的 Postgresql 和 Redis;
2931
- 数据挂载的磁盘默认会使用集群上机器的本地磁盘;
3032
- 只安装 `harbor` 主程序而不会安装其余的插件;

docs/plugins/jenkins-github-integ.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ TODO(aFlyBird0): Add your document here.
44
## Usage
55

66
```yaml
7-
87
--8<-- "jenkins-github-integ.yaml"
9-
108
```

0 commit comments

Comments
 (0)