Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ e2e-test-local.yaml

# .devstream
.devstream/
devstream.state
*.state

# e2e
testbin/
Expand Down
1 change: 1 addition & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
https://github.com/.*/pull/[0-9]+.*
https://github.com/.*/issues/[0-9]+.*
https://fonts.gstatic.com/
.*${.*}.*
.*foo.*
.*bar.*
.*xxx.*
Expand Down
52 changes: 31 additions & 21 deletions docs/plugins/gitlab-ce-docker.md
Original file line number Diff line number Diff line change
@@ -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
```
51 changes: 31 additions & 20 deletions docs/plugins/gitlab-ce-docker.zh.md
Original file line number Diff line number Diff line change
@@ -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
```