Docker

Docker - 运行Gitlab服务

2019-01-07  本文已影响0人  红薯爱帅

1. gitlab

GitLab is the first single application for the entire DevOps lifecycle. Only GitLab enables Concurrent DevOps, unlocking organizations from the constraints of the toolchain. GitLab provides unmatched visibility, higher levels of efficiency, and comprehensive governance. This makes the software lifecycle 200% faster, radically improving the speed of business.

2. 启动docker容器

docker run --detach \
    --hostname gitlab.example.com \
    --publish 443:443 --publish 80:80 --publish 22:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    gitlab/gitlab-ce:latest
127.0.0.1   gitlab.example.com

3. 测试

4. 下一步

基于Gitlab完成CI/CD,后续再完善。

5. 参考

上一篇下一篇

猜你喜欢

热点阅读