diff --git a/.gitignore b/.gitignore index cf654253d..4d312757d 100644 --- a/.gitignore +++ b/.gitignore @@ -40,7 +40,7 @@ e2e-test-local.yaml # .devstream .devstream/ -devstream.state +*.state # e2e testbin/ diff --git a/.lycheeignore b/.lycheeignore index 3f022bc18..27e362184 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -1,6 +1,7 @@ https://github.com/.*/pull/[0-9]+.* https://github.com/.*/issues/[0-9]+.* https://fonts.gstatic.com/ +.*${.*}.* .*foo.* .*bar.* .*xxx.* diff --git a/docs/plugins/gitlab-ce-docker.md b/docs/plugins/gitlab-ce-docker.md index 9d4d53ec5..da922354c 100644 --- a/docs/plugins/gitlab-ce-docker.md +++ b/docs/plugins/gitlab-ce-docker.md @@ -1,37 +1,47 @@ -# gitlab-ce-docker plugin +# gitlab-ce-docker Plugin + +This plugin installs [GitLab](https://about.gitlab.com/) CE(Community Edition) on Docker. -This plugin installs [Gitlab-CE](https://about.gitlab.com/) in an existing docker, and the container name is `gitlab`. ## Usage Note: -1. the user must be `root` or in `docker` group. -2. https not support now(todo). +1. the user you are using must be `root` or is in `docker` group; +2. `https` isn't supported now. ```yaml - --8<-- "gitlab-ce-docker.yaml" - ``` -## Next -Here are some commands that may help you: +## Some Commands May Help You + +- get the password of user `root` in gitlab-ce-docker -get password of user root in gitlab-ce-docker ```shell sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password ``` -git clone: +- clone code + +```shell +export hostname=YOUR_HOSTNAME +export username=YOUR_USERNAME +export project=YOUR_PROJECT_NAME +``` + +1. ssh + +```shell +# port is 22 +git clone git@${hostname}/${username}/${project}.git +# port is not 22, 2022 as a sample +git clone ssh://git@${hostname}:2022/${username}/${project}.git +``` + +2. http + ```shell -#ssh -# 22 port -git clone git@hostname/.../xxx.git -# if not 22 port -git clone ssh://git@hostname:port/.../xxx.git - -# http -# 80 port -git clone http://hostname/.../xxx.git -# if not 80 port -git clone http://hostname:port/.../xxx.git +# port is 80 +git clone http://${hostname}/${username}/${project}.git +# port is not 80, 8080 as a sample +git clone http://${hostname}:8080/${username}/${project}.git ``` diff --git a/docs/plugins/gitlab-ce-docker.zh.md b/docs/plugins/gitlab-ce-docker.zh.md index edfce1b21..74accc297 100644 --- a/docs/plugins/gitlab-ce-docker.zh.md +++ b/docs/plugins/gitlab-ce-docker.zh.md @@ -1,36 +1,47 @@ # gitlab-ce-docker 插件 -这个插件用来在本机已存在的 Docker 上安装 [Gitlab-CE](https://about.gitlab.com/), 容器名为 `gitlab`。 -## 使用 +这个插件用于以 Docker 的方式安装 [GitLab](https://about.gitlab.com/) CE(社区版)。 + +## 用法 注意: -1. 执行本插件的用户,必须在 `docker` 用户组内,或者是 `root` -2. 目前暂不支持 `https` 访问 gitlab +1. 你使用的用户必须是 `root` 或者在 `docker` 用户组里; +2. 目前暂不支持 `https` 方式访问 GitLab。 ```yaml - --8<-- "gitlab-ce-docker.yaml" - ``` -## 可能会用到的命令 +## 一些可能有用的命令 + +- 查看 gitlab 的 root 用户的密码: -查看 gitlab 的 root 用户的密码: ```shell sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password ``` -克隆项目: +- 克隆项目 + +```shell +export hostname=YOUR_HOSTNAME +export username=YOUR_USERNAME +export project=YOUR_PROJECT_NAME +``` + +1. ssh 方式 + +```shell +# port is 22 +git clone git@${hostname}/${username}/${project}.git +# port is not 22, 2022 as a sample +git clone ssh://git@${hostname}:2022/${username}/${project}.git +``` + +2. http 方式 + ```shell -#ssh -# 22 port -git clone git@hostname/.../xxx.git -# if not 22 port -git clone ssh://git@hostname:port/.../xxx.git - -# http -# 80 port -git clone http://hostname/.../xxx.git -# if not 80 port -git clone http://hostname:port/.../xxx.git +# port is 80 +git clone http://${hostname}/${username}/${project}.git +# port is not 80, 8080 as a sample +git clone http://${hostname}:8080/${username}/${project}.git ```