码迷,mamicode.com
首页 > 其他好文 > 详细

gitlab踩坑记录

时间:2020-07-22 15:41:54      阅读:86      评论:0      收藏:0      [点我收藏+]

标签:记录   etc   gitlab   pre   list   git   direct   res   bsp   

基于docker安装gitlab

gitlab:
    image: gitlab/gitlab-ce
    restart: always
    hostname: ‘81.70.22.100‘
    environment:
        GITLAB_OMNIBUS_CONFIG: |
            external_url ‘http://81.70.22.100:8443‘
            nginx[‘redirect_http_to_https‘] = false
            letsencrypt[‘enable‘] = false
    ports:
        - 8443:8443
    volumes:
        - ./data:/var/opt/gitlab
        - ./logs:/var/log/gitlab
        - ./config:/etc/gitlab

 

gitlab-runner

基于容器执行注册

docker exec -it gitlab-runner gitlab-ci-multi-runner register   --non-interactive  --tls-ca-file /home/data/gitlab-runner/certs/ca.crt  --url https://81.70.22.100:8443/  --registration-token dPvKQXAFiajhHEzVLzsF  --name hello-world-runner  --tag-list master  --executor shell  --locked true  --run-untagged false

 

原生安装执行注册

gitlab-runner register   --non-interactive  --tls-ca-file /home/data/gitlab-runner/certs/ca.crt  --url https://81.70.22.100:8443/  --registration-token dPvKQXAFiajhHEzVLzsF  --name hello-world-runner  --tag-list master  --executor shell  --locked true  --run-untagged false

 

gitlab踩坑记录

标签:记录   etc   gitlab   pre   list   git   direct   res   bsp   

原文地址:https://www.cnblogs.com/wangwangfei/p/13359907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!