当前位置:网站首页>建木DevOps流程的快速运用
建木DevOps流程的快速运用
2022-08-03 23:57:00 【florachy】
官方文档:https://docs.jianmu.dev/guide/quick-start.html
一、环境准备
操作系统: Ubuntu / 20.04 LTS amd64 (64bit) (百度云服务器)
CPU: 1核
内存: 2GBDocker
Docker安装
Docker安装
Docker Engine - Community
Version: 20.10.17Docker-Compose
Docker-Compose安装
docker-compose version 1.29.2, build 5becea4c
注意:教程上说需要安装Dcoker-Compose以及Kubernetes,实际两者择其一即可。
二、安装建木
docker-compose部署
1)下载docker-compose.yml
wget https://gitee.com/jianmu-dev/jianmu-deploy/raw/master/docker-compose.yml
2)启动
docker-compose up -d
3)访问http://localhost,默认用户名密码为admin/123456。
注意:这里我用的百度云服务器,在本机上使用http://云服务器IP来访问。
三、快速应用
1. 创建一个公有项目
在GitLink平台(也可以选择Gitee/Github)新建一个项目。项目中有新建hello.yml文件。
示例的yaml文件内容如下:
name: hello_world
description: 建木快速入门,从hello world开始!
trigger:
type: cron
schedule: 0 0/30 * * * ?
workflow:
start:
type: start
targets:
- sayhello
sayhello:
type: qywx_notice:1.2.1
param:
bot_webhook_url: "((wecom.bot_webhook))"
text_content: "这是来自建木的第一个问候!"
sources:
- start
targets:
- end
end:
type: end
sources:
- sayhello
2. 前提条件说明
有企业微信账号 或者钉钉账号,这里我使用的是钉钉账号
新建一个测试群
测试群添加一个机器人,并获取机器人的webhook,形如:https://oapi.dingtalk.com/robot/send?access_token=0d2abe1ebea52b2080414b8d5f*******70adf
添加流程可参考gitee相关文档
注意:我这里安全设置用得是IP地址,填写的是我云服务器的IP地址。
3. 设置命名空间,关联流程和机器人
点击“密钥管理”
点击“新增命名空间”,新增一个密钥命名空间
注意:命名空间的名称不能更改,这个需要与后面hello-world.yml
中的名字进行匹配。
进入该命名空间,给该命名空间新增密钥。密钥的值就是上面钉钉机器人的webhook地址。
注意:密钥名称不能更改,这个需要与后面hello-world.yml
中的名字进行匹配。
4. 导入项目(新建项目)
点击“导入项目”
进行项目导入操作
5. 执行项目
选择项目,点击“触发”,项目开始执行
查看钉钉,已经收到了发送的消息
流程也显示是执行成功的
plus: 私有项目的处理
如果新建的项目是一个私有项目,需要增加HTTPS认证。
官方文档如下说明:
- 首先新增gitlink的命名空间以及密钥用户名和密码。
- 导入项目时,开启认证,选择上述用户名和密码
- 后续步骤与上述一样。
边栏推荐
- 并查集详解
- HNUCM 2022年暑假ACM搜索专项练习
- vscode插件设置——Golang开发环境配置
- View the version number of CUDA, pytorch, etc.
- rosbridge-WSL2 && carla-win11
- 搭建好pytorch环境后,pip和conda指令不能用
- Super perfect version of the layout have shortcut, background replacement (solve the problem of opencv Chinese path)
- JS get parameter value of URL hyperlink
- JS获得URL超链接的参数值
- 【杂项】通过Excel为字符串产生条码
猜你喜欢
状态机实验
Jmeter-断言
逆波兰表达式求值
搭建好pytorch环境后,pip和conda指令不能用
FastDFS 一文读懂
Pytest学习-skip/skipif
[Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
The problem of disorganized data output by mnn model
vscode插件设置——Golang开发环境配置
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
随机推荐
米哈游--测试开发提前批
Salesforce的中国区业务可能出现新变化,传言可能正在关闭
rsync basic usage
Jar a key generation document database
After building the pytorch environment, the pip and conda commands cannot be used
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
Jmeter-断言
(PC+WAP)织梦模板螺钉手柄类网站
苹果对高通说:我4.45亿美元买下一个新园区,可能计划加快基带芯片自研
伦敦银最新均线分析系统怎么操作?
【深度学习】基于tensorflow的服装图像分类训练(数据集:Fashion-MNIST)
电子邮件安全或面临新威胁!
The problem of disorganized data output by mnn model
用两个栈模拟队列
代码重构:面向单元测试
Go编译原理系列7(Go源码调试)
20年将投资美国约2000亿美元,三星电子财大气粗的样子真好看
Super perfect version of the layout have shortcut, background replacement (solve the problem of opencv Chinese path)
BPF 可移植性和 CO-RE(一次编译,到处运行)
RSS feeds WeChat public - feed43 asain