1、jenkins安装gitlab插件

2、启动gitlab容器

docker run -itd -v /opt/gitlab/etc:/etc/gitlab -v /opt/gitlab/log:/var/log/gitlab -v /opt/gitlab/opt:/var/opt/gitlab --restart always --privileged=true --name gitlab gitlab/gitlab-ce

3、gitlab配置ldap认证

gitlab_rails['ldap_enabled'] = true
# gitlab_rails['prevent_ldap_sign_in'] = false ###! **remember to close this block with 'EOS' below**
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'LDAP'
host: '172.17.0.100'
port: 389
uid: 'sAMAccountName'
bind_dn: 'cn=Administrator,cn=Users,dc=southpark,dc=com'
password: '123456'
# encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
# verify_certificates: true
# smartcard_auth: false
active_directory: true
allow_username_or_email_login: true
# lowercase_usernames: false
block_auto_created_users: false
base: 'ou=south,dc=southpark,dc=com'
user_filter: ''
EOS

参考链接:
      https://www.cnblogs.com/diaomina/p/12830449.html       #docker部署gitlab
      https://www.cnblogs.com/mingerlcm/p/12702528.html     #Jenkins配置Gitlab自动触发构建

最新文章

  1. DIV元素水平和垂直居中
  2. Android—定位
  3. springmvc学习第三天
  4. cf708B. Recover the String---(构造法)
  5. CSS:选择器大全
  6. ubuntu下搭建cocos2dx编程环境-上
  7. 跨域方法之CORS
  8. C#中params使用
  9. XPath操作XML文档
  10. Protues中有源蜂鸣器BUZZER不响的解决办法(有图)
  11. Python 自动化脚本学习(二)
  12. java中拼接两个数组
  13. 学习笔记 一步步了解webpack
  14. 代理模式(Proxy)
  15. U3D学习资料收集
  16. Promise实现队列
  17. Ex3_28 在2SAT问题中,给定一个字句的集合..._第十二次作业
  18. PHP 开发者的 Docker 之旅
  19. windows 安装 Apache、php、mysql及其配置(转载)
  20. Android Studio 配置 androidAnnotations框架详细步骤

热门文章

  1. 图扑 Web SCADA 智慧制硅厂,打造新时代制硅工业
  2. torch.nn.Embedding使用详解
  3. c# RegistryKey 的相关简单操作(转)
  4. vue学习笔记:vue.js基础语法
  5. 多个mysql版本并行运行
  6. javascript的属性描述符
  7. call, apply,bind的区别与用法
  8. CVE-2013-2566 SSL/TLS RC4 信息泄露漏洞 修复方案
  9. 在dockerfile使用定时任务遇见的坑
  10. RockyLinux8.7 制作OpenSSH9.2 rpm包