当前位置:网站首页>建木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.17
Docker-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的命名空间以及密钥用户名和密码。

- 导入项目时,开启认证,选择上述用户名和密码

- 后续步骤与上述一样。
边栏推荐
猜你喜欢

Graph-node:创建一个新的subgraph

智能座舱的「交互设计」大战

Shell编程之循环语句与函数

Apple told Qualcomm: I bought a new campus for $445 million and may plan to speed up self-development of baseband chips

分布式事务框架 seata

密码学基础以及完整加密通讯过程解析

用栈实现队列

Salesforce's China business may see new changes, rumors may be closing

RSS feeds WeChat public - feed43 asain
![[Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve](/img/17/342676e20fc04ce9083c5ed443bc1d.png)
[Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
随机推荐
V8中的快慢数组(附源码、图文更易理解)
Apple told Qualcomm: I bought a new campus for $445 million and may plan to speed up self-development of baseband chips
射频芯片ATE测试从入门到放弃之参数测试
OpenCV 图像拼接
分布式事务框架 seata
The problem of disorganized data output by mnn model
The Chinese Valentine's Day event is romantically launched, don't let the Internet slow down and miss the dark time
Fluorescein-PEG-CLS, cholesterol-polyethylene glycol-fluorescein scientific research reagent
绕任意轴旋转矩阵推导
ts用法大全
libnet
Talking about the future development direction of my country's industrial parks
Salesforce的中国区业务可能出现新变化,传言可能正在关闭
【杂项】如何将指定字体装入电脑然后能在Office软件里使用该字体?
孙宇晨:Web3.0和元宇宙将协助人类更加全面地进入网络世界
国内首发可视化智能调优平台,小龙带你玩转KeenTune UI
[Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
Shell 用法梳理总结
响应式织梦模板除尘器类网站
The Beijing E-sports Metaverse Forum was successfully held