gitlab+jenkins配置自动触发构建
2024-08-28 05:55:25
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自动触发构建
最新文章
- DIV元素水平和垂直居中
- Android—定位
- springmvc学习第三天
- cf708B. Recover the String---(构造法)
- CSS:选择器大全
- ubuntu下搭建cocos2dx编程环境-上
- 跨域方法之CORS
- C#中params使用
- XPath操作XML文档
- Protues中有源蜂鸣器BUZZER不响的解决办法(有图)
- Python 自动化脚本学习(二)
- java中拼接两个数组
- 学习笔记 一步步了解webpack
- 代理模式(Proxy)
- U3D学习资料收集
- Promise实现队列
- Ex3_28 在2SAT问题中,给定一个字句的集合..._第十二次作业
- PHP 开发者的 Docker 之旅
- windows 安装 Apache、php、mysql及其配置(转载)
- Android Studio 配置 androidAnnotations框架详细步骤
热门文章
- 图扑 Web SCADA 智慧制硅厂,打造新时代制硅工业
- torch.nn.Embedding使用详解
- c# RegistryKey 的相关简单操作(转)
- vue学习笔记:vue.js基础语法
- 多个mysql版本并行运行
- javascript的属性描述符
- call, apply,bind的区别与用法
- CVE-2013-2566 SSL/TLS RC4 信息泄露漏洞 修复方案
- 在dockerfile使用定时任务遇见的坑
- RockyLinux8.7 制作OpenSSH9.2 rpm包