Skip to content

Commit ec08504

Browse files
committed
doc: update docker/gitlab.md
1 parent b12a3eb commit ec08504

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docker/gitlab.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,3 +383,46 @@ gitlab ci ERROR: Uploading artifacts to coordinator... too large archive
383383
```nginx
384384
client_max_body_size 10m;
385385
```
386+
387+
### 升级
388+
389+
目标版本 | 你的版本 | 支持升级 | 路径 | 注意
390+
---- | ---- | ---- | ---- | ----
391+
`14.1.6` | `13.9.2` | `13.9.2` -> `13.12.12` -> `14.0.11` -> `14.1.6` | 需要两个中间版本:`13.12` 和 `14.0`,然后是 `14.1`。
392+
`13.12.10` | `12.9.2` | `12.9.2` -> `12.10.14` -> `13.0.14` -> `13.1.11` -> `13.8.8` -> `13.12.10` | 需要四个中间版本:`12.10`、`13.0`、`13.1` 和 `13.8.8`,然后是 `13.12.10`。
393+
`13.2.10` | `11.5.0` | `11.5.0` -> `11.11.8` -> `12.0.12` -> `12.1.17` -> `12.10.14` -> `13.0.14` -> `13.1.11` -> `13.2.10` | 需要六个中间版本:`11.11`、`12.0`、`12.1`、`12.10`、`13.0` 和 `13.1`,然后是 `13.2.10`。
394+
395+
假设我是 `13.9.2` 升级到 `14.1.6`,通过官方提供的[升级路径](https://docs.gitlab.com/ee/update/index.html#upgrade-paths) => `13.9.2` -> `13.12.12` -> `14.0.11` -> `14.1.6`
396+
397+
```bash
398+
docker pull gitlab/gitlab-ce:13.12.12-ce.0
399+
docker pull gitlab/gitlab-ce:13.12.15-ce.0
400+
docker pull gitlab/gitlab-ce:14.0.11-ce.0
401+
docker pull gitlab/gitlab-ce:14.0.12-ce.0
402+
docker pull gitlab/gitlab-ce:14.1.6-ce.0
403+
docker pull gitlab/gitlab-ce:14.1.7-ce.0
404+
```
405+
406+
我先将所有的版本下载到本地。先将 `13.9.2` 升级到 `14.0.11`,启动的时候会有提示升级需要更改配置:
407+
408+
```bash
409+
There was an error running gitlab-ctl reconfigure:
410+
411+
Removed configurations found in gitlab.rb. Aborting reconfigure.
412+
413+
* unicorn['worker_processes'] has been deprecated since 13.10 and was removed in 14.0. Starting with GitLab 14.0, Unicorn is no longer supported and users must switch to Puma, following https://docs.gitlab.com/ee/administration/operations/puma.html.
414+
* unicorn['worker_memory_limit_min'] has been deprecated since 13.10 and was removed in 14.0. Starting with GitLab 14.0, Unicorn is no longer supported and users must switch to Puma, following https://docs.gitlab.com/ee/administration/operations/puma.html.
415+
* unicorn['worker_memory_limit_max'] has been deprecated since 13.10 and was removed in 14.0. Starting with GitLab 14.0, Unicorn is no longer supported and users must switch to Puma, following https://docs.gitlab.com/ee/administration/operations/puma.html.
416+
417+
Running handlers complete
418+
419+
Chef Infra Client failed. 0 resources updated in 12 seconds
420+
```
421+
422+
通过回滚到 `13.9.2` 更改配置重新加载配置:
423+
424+
```bash
425+
gitlab-ctl reconfigure
426+
```
427+
428+
启动没有问题再升级到 `14.0.11`。

0 commit comments

Comments
 (0)