-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba927a3
commit 3f1c42b
Showing
152 changed files
with
14,700 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Docker部署Jenkins | ||
|
||
## Jenkins简介 | ||
Jenkins是开源CI&CD软件领导者,提供超过1000个插件来支持构建、部署、自动化,满足任何项目的需要。我们可以用Jenkins来构建和部署我们的项目,比如说从我们的代码仓库获取代码,然后将我们的代码打包成可执行的文件,之后通过远程的ssh工具执行脚本来运行我们的项目。 | ||
|
||
## Jenkins的安装及配置 | ||
|
||
### Docker环境下的安装 | ||
|
||
* 下载Jenkins的Docker镜像: | ||
```shell | ||
docker pull jenkins/jenkins:lts | ||
``` | ||
* 在Docker容器中运行Jenkins: | ||
``` shell | ||
docker run -p 8080:8080 -p 50000:50000 --name jenkins \ | ||
-u root \ | ||
-v /etc/localtime:/etc/localtime \ | ||
-v /data/jenkins_home:/var/jenkins_home \ | ||
-e JAVA_OPTS=-Duser.timezone=Asia/Shanghai \ | ||
-d jenkins/jenkins:lts | ||
``` | ||
* echo 'Asia/Shanghai' >/etc/timezone | ||
|
||
### Jenkins的配置 | ||
* 运行成功后访问该地址登录Jenkins,第一次登录需要输入管理员密码:http://localhost:8080/ | ||
|
||
 | ||
|
||
* 使用管理员密码进行登录,可以使用以下命令从容器启动日志中获取管理密码: | ||
|
||
``` shell | ||
docker logs jenkins | ||
``` | ||
|
||
 | ||
|
||
* 选择安装插件方式,这里我们直接安装推荐的插件: | ||
|
||
 | ||
|
||
* 进入插件安装界面,联网等待插件安装: | ||
|
||
 | ||
|
||
* 安装完成后,创建管理员账号: | ||
|
||
 | ||
|
||
* 进行实例配置,配置Jenkins的URL: | ||
|
||
 | ||
|
||
* 点击系统管理->插件管理,进行一些自定义的插件安装: | ||
|
||
 | ||
|
||
* 确保以下插件被正确安装: | ||
1. 根据角色管理权限的插件:Role-based Authorization Strategy | ||
2. 远程使用ssh的插件:SSH plugin | ||
|
||
* 通过系统管理->全局工具配置来进行全局工具的配置,比如maven的配置: | ||
|
||
 | ||
|
||
* 新增maven的安装配置: | ||
|
||
 | ||
|
||
* 在系统管理->系统配置中添加全局ssh的配置,这样Jenkins使用ssh就可以执行远程的linux脚本了: | ||
|
||
 | ||
|
||
## 角色权限管理 | ||
|
||
我们可以使用Jenkins的角色管理插件来管理Jenkins的用户,比如我们可以给管理员赋予所有权限,运维人员赋予执行任务的相关权限,其他人员只赋予查看权限。 | ||
|
||
* 在系统管理->全局安全配置中启用基于角色的权限管理: | ||
|
||
 | ||
|
||
* 进入系统管理->Manage and Assign Roles界面: | ||
|
||
 | ||
|
||
* 添加角色与权限的关系: | ||
|
||
 | ||
|
||
* 给用户分配角色: | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# CTO 技能图谱 | ||
|
||
### 岗位职责 | ||
* 建立技术团队文化 | ||
* 规划技术发展路线 | ||
* 落地产品研发成果 | ||
* 宣传公司技术品牌 | ||
* 吸引优秀技术人才 | ||
|
||
### 基本素质 | ||
* 正直诚实的道德修养 | ||
* 谦虚谨慎的工作态度 | ||
* 随机应变的处事风格 | ||
* 统领全局的战略思维 | ||
|
||
### 硬技能 | ||
|
||
#### 技术能力 | ||
* 具备一定的技术深度 | ||
* 具备较强的技术广度 | ||
* 追求技术选型合理性 | ||
* 对技术发展嗅觉敏锐 | ||
|
||
#### 业务能力 | ||
* 能深度理解业务本质 | ||
* 能用技术来帮助业务 | ||
* 让技术驱动业务发展 | ||
|
||
#### 架构能力 | ||
* 能站在业务上设计架构 | ||
* 架构规范合理且易落地 | ||
* 能为架构设计提出意见 | ||
|
||
#### 产品能力 | ||
* 具备一定的产品价值观 | ||
* 能准确地抓住用户刚需 | ||
* 能为产品设计提出意见 | ||
|
||
#### 管理能力 | ||
- 团队管理 | ||
* 招人:知道如何吸引所需的人? | ||
* 识人:知道如何识别已有队员? | ||
* 育人:知道如何让队员们成长? | ||
* 开人:知道如何请人愉快离开? | ||
* 留人:知道如何留住该留的人? | ||
* 挖人:知道如何挖到需要的人? | ||
- 项目管理 | ||
* 估算:知道项目成本如何估算? | ||
* 分工:知道工作任务如何分配? | ||
* 排期:知道项目计划如何制定? | ||
* 实施:知道项目实施如何开展? | ||
* 发布:知道项目发布如何执行? | ||
* 回顾:知道项目回顾如何进行? | ||
- 绩效管理 | ||
* 制定:知道如何制定考核标准? | ||
* 执行:知道如何执行绩效考核? | ||
* 优化:知道如何提升团队绩效? | ||
- 时间管理 | ||
* 制定:知道如何制定团队计划? | ||
* 管理:知道如何管理团队任务? | ||
* 权衡:知道如何权衡优先级别? | ||
- 情绪管理 | ||
* 控制:知道如何控制自我情绪? | ||
* 转化:知道如何化悲观为乐观? | ||
* 使用:知道如何善用自我情绪? | ||
|
||
### 软技能 | ||
|
||
#### 领导能力 | ||
- 决策能力 | ||
* 不要害怕做决定 | ||
* 做出正确的决定 | ||
* 敢于为决定负责 | ||
- 影响能力 | ||
* 不要改变别人而是激发别人 | ||
* 用自己的行为和态度去激发 | ||
* 持续不断提高自己的影响力 | ||
- 沟通能力 | ||
+ 向上沟通(与公司创始人) | ||
* 领会老板真实意图 | ||
* 站在老板角度思考 | ||
* 不要强迫改变老板 | ||
+ 向下沟通(与本部门同事) | ||
* 是沟通而不是命令 | ||
* 站在下属立场沟通 | ||
* 不要吝啬夸赞队员 | ||
- 横向沟通(与跨部门同事) | ||
* 突出对方的重要性 | ||
* 先要共识才能共赢 | ||
* 懂得圆满大于完美 | ||
|
||
#### 执行能力 | ||
* 理解执行目标 | ||
* 提高执行效率 | ||
* 确保执行效果 | ||
|
||
#### 学习能力 | ||
* 对新知识充满好奇心 | ||
* 能够快速学习新技能 | ||
* 拥有触类旁通的能力 | ||
|
||
#### 组织能力 | ||
* 积极主动并有活力 | ||
* 做事情敢于放得开 | ||
* 能够调用所需资源 | ||
|
||
#### 洞察能力 | ||
* 善于抓住事物本质 | ||
* 善于观察人性心理 | ||
* 善于预见未来变化 | ||
|
||
#### 抗压能力 | ||
* 学会释放压力 | ||
* 化压力为动力 | ||
* 化消极为积极 | ||
|
||
#### 自省能力 | ||
* 能够不断自我反省 | ||
* 能够从失败中总结 | ||
* 能够在总结中提高 | ||
|
||
#### 战略能力 | ||
* 能够深刻理解公司战略 | ||
* 能够站在更高层次思考 | ||
* 结合战略形成技术壁垒 | ||
|
||
#### 社交能力 | ||
* 善于表达自己 | ||
* 善于结交朋友 | ||
* 善于公众演讲 | ||
|
||
#### 谈判能力 | ||
* 能够通过谈判得到对方认同 | ||
* 能够从谈判中找到共赢方式 | ||
* 能够在谈判场合中保持镇定 | ||
|
||
#### 政治能力 | ||
* 能够对政治持有敏感度 | ||
* 能够处理办公室小政治 | ||
* 能够主动避免政治风险 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.