Skip to content

Commit d5a3829

Browse files
authored
docs: gitlab
1 parent 226d5e7 commit d5a3829

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

README.md

+41-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
apt、composer、nodejs 等常用工具在国外,内地开发者访问较慢,而[工信部特批的海南自贸港「国际互联网数据专用通道」](https://mp.weixin.qq.com/s/8L4XWiJs-5fKdLjmxfn7fA)可高速访问,本站分享内地镜像加速信息,让开发者感受「中国速度」。
44

5-
[![CODING 持续集成](https://sinkcup.coding.net/badges/china-speed/job/943224/mkdocs/build.svg)](https://coding.net/products/ci?cps_source=PIevZ6Jr)
6-
[![GitHub Actions](https://github.com/china-speed/china-speed.github.io/workflows/CI/badge.svg)](https://github.com/china-speed/china-speed.github.io/actions)
7-
85
![](hnftp-internet.jpg)
96

107
## apt ubuntu
@@ -89,6 +86,47 @@ docker info
8986
# docker pull gcr.azk8s.cn/google_containers/hyperkube-amd64:v1.9.2
9087
```
9188

89+
## gitlab download
90+
91+
```shell
92+
curl -L get.gitlab.cn | bash
93+
sudo apt install -y gitlab-jh
94+
# sudo yum install -y gitlab-jh
95+
96+
sudo gitlab-ctl reconfigure
97+
sudo cat /etc/gitlab/initial_root_password
98+
```
99+
100+
## gitlab runner
101+
102+
注意:debian/Ubuntu 和 CentOS/Redhat 是两个脚本。
103+
104+
```shell
105+
# debian/Ubuntu
106+
curl -L "https://packages.gitlab.cn/repository/raw/scripts/runner.deb.sh" | sudo bash
107+
sudo apt install -y gitlab-runner
108+
109+
# CentOS/Redhat
110+
curl -L "https://packages.gitlab.cn/repository/raw/scripts/runner.rpm.sh" | sudo bash
111+
sudo yum install -y gitlab-runner
112+
```
113+
114+
```
115+
sudo gitlab-runner register
116+
> Enter an executor: kubernetes, instance, custom, parallels, virtualbox, docker, docker-windows, shell, ssh, docker+machine, docker-autoscaler:
117+
> docker
118+
> Enter the default Docker image (for example, ruby:2.7):
119+
> registry.jihulab.com/ultimate-plan/docker/busybox:latest
120+
```
121+
122+
```shell
123+
sudo vi /etc/gitlab-runner/config.toml
124+
[runners.docker]
125+
tls_verify = false
126+
image = "registry.jihulab.com/ultimate-plan/docker/busybox:latest"
127+
helper_image = "registry.gitlab.cn/gitlab-cn/gitlab-runner/gitlab-runner-helper:x86_64-bbcb5aba"
128+
```
129+
92130
## go
93131

94132
```shell

0 commit comments

Comments
 (0)