본문 바로가기
버전관리/GitLab

GitLab 버전 업데이트(3) - 13.12.15 to 14.0.12

by 주리니e 2022. 7. 11.
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

 

 

Upgrade paths

업그레이드 경로대로 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

 

Docker Hub

 

hub.docker.com

 

2022.07.11 - [버전관리/Gitlab] - Gitlab-CE 버전 업데이트(2) - 백업

 

Gitlab-CE 버전 업데이트 하기 - 백업 (2)

Gitlab-CE 버전 업데이트 하기 - 백업 (2) 우선 현재 Gitlab을 백업하자. 나는 gitlab containner 생성 시 docker-compose.yml 설정파일에 다음과 같이 백업 설정을 하였다. version: '3' services: gitlab: imag..

jiurinie.tistory.com

 

728x90

댓글