|
|
如果你能看到这里, 说明你的 gitlab 账号已经注册成功, 这个账号用于登录闪马内部多个服务, 请注意账号安全, 保证以下几点:
|
|
|
|
|
|
1. 使用密码管理应用保存登录密码, 如浏览器或操作系统内置的密码管理功能
|
|
|
|
|
|
2. 将二次验证恢复码保存在安全的地方, 或者手抄下来, **不要只存在手机里**, 这是在手机丢了的时候紧急登录使用的
|
|
|
|
|
|
接下来还需要做几件事:
|
|
|
|
|
|
## 联系管理员确认帐号和分组
|
|
|
|
|
|
1. 所有人加入 hello 分组
|
|
|
2. 联系部分领导添加对应分组权限
|
|
|
- 算法: @linyining
|
|
|
- 产品: @yangyeqing
|
|
|
- 工程: @yaotangren
|
|
|
|
|
|
## 配置 SSH 和 Git
|
|
|
|
|
|
1. 添加 [SSH 公钥](https://git.supremind.info/profile/keys)
|
|
|
|
|
|
2. 编辑本地 SSH 客户端配置(`~/.ssh/config`) 添加以下内容:
|
|
|
|
|
|
```
|
|
|
Host git.supremind.info
|
|
|
Port 10022
|
|
|
IdentityFile <path/to/your/private/key>
|
|
|
```
|
|
|
3. 测试 Git 配置
|
|
|
|
|
|
```sh
|
|
|
$ git clone git@git.supremind.info:hello/supremind.git
|
|
|
Cloning into 'supremind'...
|
|
|
remote: Enumerating objects: 3, done.
|
|
|
remote: Counting objects: 100% (3/3), done.
|
|
|
remote: Total 3 (delta 0), reused 0 (delta 0)
|
|
|
Receiving objects: 100% (3/3), done.
|
|
|
```
|
|
|
|
|
|
## 配置 Docker Registry
|
|
|
|
|
|
1. 生成 [personal access token](https://git.supremind.info/profile/personal_access_tokens), `Scopes` 选择 `api`
|
|
|
|
|
|
2. Docker Login
|
|
|
```sh
|
|
|
$ docker login reg.supremind.info -u <username>
|
|
|
<paste your token>
|
|
|
```
|
|
|
|
|
|
3. 测试 Docker 配置
|
|
|
```sh
|
|
|
$ docker pull reg.supremind.info/hello/supremind
|
|
|
latest: Pulling from hello/supremind
|
|
|
1b930d010525: Pull complete
|
|
|
Digest: sha256:92c7f9c92844bbbb5d0a101b22f7c2a7949e40f8ea90c8b3bc396879d95e899a
|
|
|
Status: Downloaded newer image for reg.supremind.info/hello/supremind:latest
|
|
|
``` |
|
|
\ No newline at end of file |