본문 바로가기

반응형

gitlab

C276x260 우분투 24.04에서 GitLab를 설치하는 방법 우분투 24.04에서 GitLab를 설치하는 방법테스트 환경운영체제 정보$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 24.04.2 LTSRelease: 24.04Codename: nobleGitLab 설치시스템 업데이트sudo apt update필수 패키지 설치sudo apt install debian-archive-keyringsudo apt install -y \ curl \ gnupg \ apt-transport-httpsGPG 키 추가curl -fsSL https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey \ | .. 더보기
C276x260 gitlab ssh를 사용하여 미러링 구성(gitlab 리포지토리 미러링) gitlab ssh를 사용하여 미러링 구성(gitlab 리포지토리 미러링)GitLab 미러링은 외부 Git 리포지토리(예: GitHub, Bitbucket)와 GitLab 사이의 리포지토리 동기화를 허용합니다.[구성]원본 리포지토리 : gitlab-mirror-source미러 리포지토리 : gitlab-mirror-target원본 리포지토리 저장소 설정프로젝트 > gitlab-mirror-source > 저장소 설정- 미러 리포지토리 SSH URL 필요미러링 저장소 설정Git repository URL(Git 저장소 URL)Mirror direction(미러 방향)Detect Host Keys(호스트 키 발견)Authentication method(인증 방법)미러링 설정 완료미러 리포지토리 저장소 설정프.. 더보기
C276x260 GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하는 방법 GitLab의 root 계정 비밀번호를 초기화하려면 GitLab 컨테이너 내부에서 gitlab-rails 콘솔을 사용하여 비밀번호를 변경해야 합니다. GitLab 컨테이너에 로그 확인 docker-compose logs -f $ docker-compose logs -f ... gitlab | gitlab | == Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/002_admin.rb gitlab | Administrator account created: gitlab | gitlab | login: root gitlab | password: ****** gitlab .. 더보기
C276x260 도커 컨테이너로 gitlab-runner 실행하는 방법 도커 컨테이너로 gitlab-runner 실행하는 방법docker-compose로 gitlab-runner 컨테이너 실행docker-compose 편집$ vim docker-compose.ymlversion: '3'services: gitlab-runner: image: 'gitlab/gitlab-runner:latest' restart: unless-stopped container_name: gitlab-runner hostname: gitlab-runner volumes: - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock - ./config:/etc/git.. 더보기
C276x260 [Jenkins] Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) [Jenkins 작업] Jenkins 플러그인 설치 GitLab Plugin을 설치합니다. Dashboard > Jenkins 관리 > Plugin Manager GitLab API token 등록(Credentials) Dashboard > Jenkins 관리 > Manage Credentials Dashboard > Jenkins 관리 > System Configuration > 시스템 설정 프로젝트(PHP_Deployment) 설정 Webhooks URL, Webhooks Secret token 잘 기억합니다. Webhooks URL : http://jenkins.xxxxx.com:8080/project/PHP_Deploymen.. 더보기
C276x260 [Docker] GitLab(Omnibus) Let's Encrypt 갱신 GitLab(Omnibus) Let's Encrypt 갱신 docker 컨테이너 이름 확인 $ docker-compose ps Name Command State Ports ------------------------------------------------------------------------------------------------------------------------------------------ gitlab /assets/wrapper Up (healthy) 22/tcp, 0.0.0.0:2222->2222/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5000->5000/tcp, 0.0.0.0:80->80/tcp gitlab Let's Encrypt renewal d.. 더보기
C276x260 GitHub 개인 액세스 토큰을 사용하는 방법 GitHub 개인 액세스 토큰을 사용하는 방법비밀번호로 접근 시 에러Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.$ git push -u origin mainUsername for 'https://github.com': admin@sangchul.krPassword for 'https://admin@sangchul.kr@github.com': re.. 더보기
C276x260 GitLab Omnibus를 Docker 컨테이너로 올리는 방법 GitLab Omnibus를 Docker 컨테이너로 올리는 방법1. Docker Compose 설치Docker Compose가 시스템에 설치되어 있어야 합니다.Docker Compose 설치 가이드는 공식 웹사이트(https://docs.docker.com/compose/install/)에서 제공됩니다.2. docker-compose.yml 파일 생성프로젝트 디렉터리에 docker-compose.yml 파일을 생성하고 다음과 같이 내용을 작성합니다.docker-compose 파일 다운로드git clone https://github.com/anti1346/docker-gitlab-ce.gitcd docker-gitlab-ce.env 파일 생성vim .envGITLAB_HOST=domain_nameGITLA.. 더보기

728x90
반응형