选型
github 私人组织需要按月付费,不考虑。
gitee 超5人团队付费,功能还不多。
gitLab.con 私人免费,功能还可以项目管理、集成,
GitLab 与 Gerrit对比
作者的总结: 权限控制的挺好,但是项目管理和集成的不好
就选gitlab吧。总览 https://gitlab.com/gitlib
队友反应这网太慢了,我们自己搭建。
搭建
GitLab整体架构介绍
利用docker搭建gitlab;实现git-ci 集成自动化部署
docker run --name gitlab-postgresql -d \
--env 'DB_NAME=gitlabhq_production' \
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
--volume /data/gitlab/postgresql:/var/lib/postgresql \
sameersbn/postgresql:9.4-12
docker run --name gitlab-redis -d \
--volume /data/gitlab/redis:/var/lib/redis \
sameersbn/redis:latest
docker run --name gitlab -d \
--link gitlab-postgresql:postgresql --link gitlab-redis:redisio \
--publish 10022:22 --publish 10023:80 \
--env 'GITLAB_PORT=10023' --env 'GITLAB_SSH_PORT=10022' \
--env 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string' \
--volume /data/gitlab/gitlab:/home/git/data \
gitlab/gitlab-ce:latest
访问502问题的解决:Docker----搭建自己的gitlab(填坑之旅)
[【docker】【Gitlab】gitlab中clone项目时,IP地址是一串数字(内网Gitlab的IP地址不正确)的问题解决]
步骤1
步骤2