docker-gitlab搭建
第三十九章 微服务CICD(1)- gitlab搭建与使用(docker版)
docker run -d -h gitlab.zhaojigang.com -p 8929:80 -v /etc/gitlab/:/etc/gitlab/ -v /var/log/gitlab/:/var/log/gitlab/ -v /var/opt/gitlab/:/var/opt/gitlab/ --name gitlab docker.io/gitlab/gitlab-ce
docker run -d -p 8929:80 -v /etc/gitlab/:/etc/gitlab/ -v /var/log/gitlab/:/var/log/gitlab/ -v /var/opt/gitlab/:/var/opt/gitlab/ --name gitlab docker.io/gitlab/gitlab-ce
docker run -d -p 8929:80 -v /etc/gitlab/:/etc/gitlab/ -v /var/log/gitlab/:/var/log/gitlab/ -v /var/opt/gitlab/:/var/opt/gitlab/ --name gitlab-zh docker.io/twang2218/gitlab-ce-zh
gitlab:修改project下载地址的默认域名和端口
https://baijiahao.baidu.com/s?id=1620172148149401855&wfr=spider&for=pc
external_url 'http://106.14.167.208:8929/'
7decd20e059b gitlab/gitlab-ce "/assets/wrapper" 3 weeks ago Up 3 weeks (healthy) 22/tcp, 443/tcp, 0.0.0.0:8929->80/tcp gitlab
docker run
--detach
--publish 8929:80
--name gitlab
--restart unless-stopped
--volume /mnt/sda1/gitlab/etc:/etc/gitlab
--volume /mnt/sda1/gitlab/log:/var/log/gitlab
--volume /mnt/sda1/gitlab/data:/var/opt/gitlab
beginor/gitlab-ce:11.3.0-ce.0
gitlab-rake gitlab:backup:restore BACKUP= 1556936736_2019_05_04_11.9.7_gitlab_backup.tar
//import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.service.IService;
https://192.168.0.179/jjpro_web_v2.git
停止当前gitlab,重新加载配置
gitlab-ctl stop
gitlab-ctl reconfigure
1
2
gitlab-ctl stop
gitlab-ctl reconfigure
重新加载后,会发现在/data/gitlab目录下多出一个repositories目录
最后启动gitlab即可
gitlab-ctl start
1
gitlab-ctl start