라벨이 gitlab인 게시물 표시

change gitlab's external domain

## change domain # external_url 'GENERATED_EXTERNAL_URL' external_url "http://git.gnoti.com" ## reconfig  [root@gitmain ~]# docker exec -it gitlab /bin/bash root@gitlab:/# vi /etc/gitlab/gitlab.rb root@gitlab:/# gitlab-ctl reconfigure Starting Chef Infra Client, version 15.17.4 resolving cookbooks for run list: ["gitlab-ee"] Synchronizing Cookbooks:   - gitlab-ee (0.0.1)   - package (0.1.0)  

install gitlab with docker

install gitlab with docker #Run the image docker run --detach --hostname gitdocker.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest [root@gitlabd ~]# docker run --detach --hostname git.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest Unable to find image 'gitlab/gitlab-ce:latest' locally latest: Pulling from gitlab/gitlab-ce 0a01a72a686c: Pull complete cc899a5544da: Pull complete 19197c550755: Pull complete 716d454e56b6: Pull complete b66ad69c1d8e: Pull complete 462500695a87: Pull complete 453c7300278b: Pull complete d7a5a55d56da: Pull complete 8e0cebb8d658: Pull complete 0b6cca773e2f: Pull c

check gitlab version

#check gitlab version  [root@gitlab ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/gitlab/gitlab-ce 12.2.5-ce.0 cc590709bbd3 14 months ago 1.75 GB #login gitlab  Help> Help GitLab Community Edition 12.2.5 #login gitlab  [root@localhost ~]# docker exec -it gitlab /bin/bash root@giterp:/# gitlab-rake gitlab:env:info System information System: Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 12.2.5 Revision: 09f8edbc29a Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: http://giterp.gnoti.com HTTP Clone URL: http://giterp.gnoti.com/some-group/some-project.git SSH Clone URL: git@giterp.gnoti.com:some-gr

docker gitlab backup & restore

docker상에서  운영중이 gitlab의 백업 및 리스토어   #backup [root@localhost ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a336aa66475e gitlab/gitlab-ce:latest "/assets/wrapper" 6 hours ago Exited (137) 6 hours ago gitlabgnoti 95013969775b gitlab/gitlab-ce:latest "/assets/wrapper" 29 hours ago Up 6 hours (healthy) 443/tcp, 0.0.0.0:6015->22/tcp, 0.0.0.0:8897->80/tcp gitlab [root@localhost ~]# docker exec -i -t gitlab bash [root@localhost ~]# docker exec -i -t gitlab bash root@gitlab:/# gitlab-rake gitlab:backup:create 2019-09-18 12:32:59 +0000 -- Dumping database ... Dumping PostgreSQL database gitlabhq_production ... [DONE] 2019-09-18 12:33:03 +0000 -- done 2019-09-18 12:33:03 +0000 -- Dumping repositories ... * gnoti/searchman