본문 바로가기

반응형

gitlab

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(인증 방법) 미러링 설정 완료 미러.. 더보기
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 .. 더보기
[리눅스] 도커 컨테이너로 gitlab-runner 실행하는 방법 도커 컨테이너로 gitlab-runner 실행하는 방법 docker-compose로 gitlab-runner 컨테이너 실행 docker-compose 편집 $ vim docker-compose.yml version: '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/gitlab-runner $ docker-compos.. 더보기
[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.. 더보기
[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.. 더보기
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 main Username for 'https://github.com': admin@sangchul.kr Password for 'https://admin@sangchul.kr@github.co.. 더보기
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.git cd docker-gitlab-ce .env 파일 생성 vim .env GITLAB_HOST=domai.. 더보기
GitLab에서 리포지토리 미러링을 구성하는 방법(gitlab -> github 미러링) GitLab에서 리포지토리 미러링을 구성하는 방법(gitlab -> github 미러링) github 리포지토리 생성 및 tokens 생성 repository 생성 repository name : gitlab_mirror tokens 생성 Settings > Developer settings > Personal access tokens gitlab 프로젝트 생성 및 미러링 설정 프로젝트 생성 프로젝트 그룹 : testG 프로젝트 이름 : gitlab_source 미러링 설정 testG > gitlab_source > 저장소 설정 Git 저장소 URL : https://아이디@github.com/아이디/gitlab_morror.git 미러 방향 : Push 인증 방법 : 패스워드 패스워드 : 2691109.. 더보기

728x90
반응형