728x90
GitLab 버전 업데이트(3) - 13.12.15 to 14.0.12
- Docker 컨테이너 접속
$ docker exec -it gitlab /bin/bash
- 현재 gitlab 버전 확인
$ gitlab-rake gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.7.2p137
Gem Version: 3.1.4
Bundler Version:2.1.4
Rake Version: 13.0.3
Redis Version: 6.0.14
Git Version: 2.31.1
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.12.15
Revision: 6614e1562c6
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 12.6
URL: https://gitlab.nips.local
HTTP Clone URL: https://gitlab.nips.local/some-group/some-project.git
SSH Clone URL: git@gitlab.nips.local:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.18.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
- Docker gitlab 컨테이너 stop
$ docker-compose stop gitlab
업그레이드 경로대로 13.12.15에서 14.0.12로 진행해보자.
- gitlab containner 종료
$ exit
- docker-compose.yml 파일 열기
$ vi docker-compose.yml
- gitlab image 14.0.12 버전 수정 및 저장
...
gitlab:
image: 'gitlab/gitlab-ce:14.0.12-ce.0'
...
- docker-compose up -d
$ docker-compose up -d
Pulling gitlab (gitlab/gitlab-ce:14.0.12-ce.0)...
14.0.12-ce.0: Pulling from gitlab/gitlab-ce
7b1a6ab2e44d: Already exists
582baf798ef6: Pull complete
5abed0d50d48: Pull complete
7faca8eb1c05: Pull complete
c49279201b3e: Pull complete
8c0730f99ab1: Pull complete
e53be77e6ac4: Pull complete
33209627b158: Pull complete
Digest: sha256:751e675b513255613dc87dffd5fc92e35ba0aa3305e84b64ab5d266d2a2ba0bb
Status: Downloaded newer image for gitlab/gitlab-ce:14.0.12-ce.0
Recreating gitlab ... done
- 도커 프로세스 확인
$ docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------------------------------------------------
gitlab /assets/wrapper Up (healthy) 0.0.0.0:22->22/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
- GitLab 정상 실행 및 버전 확인
참고 : Docker Hub - 다운로드 이미지 확인
https://hub.docker.com/r/gitlab/gitlab-ce/tags
2022.07.11 - [버전관리/Gitlab] - Gitlab-CE 버전 업데이트(2) - 백업
728x90
'버전관리 > GitLab' 카테고리의 다른 글
[GitLab] 취약점 조치 Remote Command Execution via Github import (0) | 2022.08.31 |
---|---|
GitLab 버전 업데이트(4) - 14.0.12 to 15.1.2 (0) | 2022.07.12 |
GitLab 버전 업데이트(2) - 백업 (0) | 2022.07.11 |
GitLab 버전 업데이트(1) - 문서 확인 (0) | 2022.07.06 |
GitLab 버전 확인하기 (0) | 2022.07.06 |
댓글