linux下快速部署自己的gitlab原创
原创企业发展一般都是部署自己的私人仓库,毕竟内部项目大多是非公有项目,所以部署内部企业是非常必要的。gitlab
docker 快速部署gitlab
-
本地安装docker 如果没有,请参阅 [【docker快速入门指南]](https://blog.csdn.net/Qcg0223/article/details/107999885)
对于 Linux 用户,设置路径 /data/gitlab:
export GITLAB_HOME=/data/gitlab
安装docker镜像
sudo docker run --detach --hostname gitlab.abc.com --publish 7843:443 --publish 7880:80 --publish 7822:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GITLAB_HOME/data:/var/opt/gitlab --shm-size 256m registry.gitlab.cn/omnibus/gitlab-jh:latest
-
查看默认安装密码
访问极狐GitLab URL并使用用户名 root 和密码从以下命令登录:
sudo docker exec -it gitlab grep Password: /etc/gitlab/initial_root_password
-
访问gitlab 仓库
对于已配置的host或dns解析后的终端可以直接host+端口号访问
访问地址是 http://gitlab.abc.com:7880 或 http://主机IP地址:7880
效果如下,然后github手术差不多,你自己想一想吧!
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
上一篇:js实现文字转语音功能tts原创 下一篇:TypeScript快速入门转载