随笔分类 -  云运维&&云架构

ballerina 学习十 streams
摘要:ballerina 的streams 使用的是siddhi complex event processing 引擎处理,可以包含的语法有 projection filtering windows join pattern 简单例子 参考代码 import ballerina/io; import b 阅读全文

posted @ 2018-05-19 20:05 荣锋亮 阅读(282) 评论(0) 推荐(0) 编辑

ballerina 学习九 Client endpoints
摘要:说白了就是连接外部服务的,可以是http jms websocket 。。。。 简单例子 代码 import ballerina/http; import ballerina/log; endpoint http:Client baiduEP { url:"http://www.baidu.com" 阅读全文

posted @ 2018-05-18 14:38 荣锋亮 阅读(315) 评论(0) 推荐(0) 编辑

ballerina 学习八 Parallel( 并行处理)
摘要:实际上就是并行进行任务的处理 简单例子 代码 import ballerina/io; function main (string… args) { worker first { io:println("first"); } worker second { io:println("second"); 阅读全文

posted @ 2018-05-18 13:51 荣锋亮 阅读(184) 评论(0) 推荐(0) 编辑

ballerina 学习七 object 创建&& 初始化
摘要:在 ballerina 总中object 是一个包含public private 类型字段同时包含函数,需要开发人员进行自定义类型以及行为 说白了,就是类似面向对象的class 基本使用 代码 import ballerina/http; import ballerina/io; type App 阅读全文

posted @ 2018-05-18 13:23 荣锋亮 阅读(191) 评论(0) 推荐(0) 编辑

ballerina 学习六 xml && json
摘要:ballerina xml && json 参考使用 代码比较简单,使用起来还是比较方便的 xml 代码说明: import ballerina/io; function main (string… args) { xml person1 = xml `<person><fname>John</fn 阅读全文

posted @ 2018-05-18 10:39 荣锋亮 阅读(277) 评论(0) 推荐(0) 编辑

ballerina 学习五 使用composer管理ballerina 项目
摘要:1. 启动 composer 备注: 因为这个命名和php的一个包管理工具重名了,所以可能需要使用决定路径 比如我的mac系统使用:Library/Ballerina/ballerina-0.970.1/bin/composer 2. 参考界面 具体的操作比较简单,就不描述了。 3. 参考资料 ht 阅读全文

posted @ 2018-05-14 16:24 荣锋亮 阅读(293) 评论(0) 推荐(0) 编辑

ballerina 学习四 如何进行项目结构规划
摘要:备注: * ballerina 程序员可以将代码放到一个文件或者一个项目目录 * 一个ballerina program是一个已经编译以及链接的二进制文件 * package是一个包含ballerina 源码文件的目录 * repository是一个版本化的已经编译或者源码 * project自动管 阅读全文

posted @ 2018-05-14 16:03 荣锋亮 阅读(279) 评论(0) 推荐(0) 编辑

ballerina 学习三 根据swagger 以及protobuf 生成code
摘要:备注: 基本环境安装就不用介绍了,swagger 以及grpc 同时也不用介绍了,都是比较简单的代码,就是一个简单的测试 1. 初始化项目 ballerina init 项目结构如下: ├── README.md ├── hello_service.bal ├── swagger.json ├── 阅读全文

posted @ 2018-05-14 11:58 荣锋亮 阅读(657) 评论(0) 推荐(0) 编辑

ballerina 学习二 ballerina 命令参数
摘要:1. 目前支持的命令 run Run Ballerina program build Compile Ballerina program install Install packages to home repository pull Download package from Ballerina 阅读全文

posted @ 2018-05-14 11:29 荣锋亮 阅读(249) 评论(0) 推荐(0) 编辑

ballerina 学习一 基本项目安装试用
摘要:ballerina介绍 建议参考这篇文章: https://mp.weixin.qq.com/s/DqdlOhquqMaGOJf26lANPw 1. 安装 直接下载对应操作系统的二进制文件即可,同时官方也提供了linux 操作系统对应的各种发行包(deb, rpm) 参考地址: https://ba 阅读全文

posted @ 2018-05-14 10:07 荣锋亮 阅读(447) 评论(0) 推荐(0) 编辑

dockerize 容器工具集基本使用
摘要:基本功能: * 在启动的时候根据环境变量或者模版生成配置文锦啊 * 多日志文件重定向到标准输入输出 * 等待其他服务(tcp,http unix)起来之后在启动主进程 1. 安装 直接使用容器 jwilder/dockerize 或者下载启动 参考安装如下: ENV DOCKERIZE_VERSIO 阅读全文

posted @ 2018-05-11 20:25 荣锋亮 阅读(1051) 评论(0) 推荐(0) 编辑

nginx-unit docker 运行以及php &&golang 简单使用
摘要:备注: nginx unit nginx 开源的新的nginx 开发平台,但是说白了,个人感觉一般,而且官方文档也不是很好, api 接口目前暂时文档比较。。。。,以前写过虚拟机&&物理机安装部署的方式,今天写一个使用docker 进行安装部署的方式,同时添加golang语言的使用,算是比较全了,毕 阅读全文

posted @ 2018-05-11 16:08 荣锋亮 阅读(585) 评论(0) 推荐(0) 编辑

ffmpeg hls 点播负载均衡简单实现
摘要:备注: 主要是进行文件的切片处理,以及m3u8 的文件前缀添加以达到通过nginx 或者类似的分布式文件工具进行数据切片处理 参考配置如下: ffmpeg -y -i mydemo.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb appdem 阅读全文

posted @ 2018-05-09 16:20 荣锋亮 阅读(1646) 评论(0) 推荐(0) 编辑

nginx grpc 试用
摘要:1. 编译 wget https://nginx.org/download/nginx-1.13.10.tar.gz tar xvf nginx-1.13.10.tar.gz cd nginx-1.13.10 ./configure --with-http_ssl_module --with-htt 阅读全文

posted @ 2018-05-09 16:15 荣锋亮 阅读(633) 评论(0) 推荐(0) 编辑

autoconf 简单demo试用
摘要:1. 安装工具 yum install -y automake 2. 基本项目 a. 项目参考结构 ├── AUTHORS ├── COPYING ├── ChangeLog ├── Makefile.am ├── NEWS ├── README ├── README.md ├── a.out ├─ 阅读全文

posted @ 2018-05-08 14:06 荣锋亮 阅读(304) 评论(0) 推荐(0) 编辑

mongooseim xmpp 服务器docker 安装试用
摘要:备注: 预备环境docker xmpp client 1. 启动mongooseim docker run -d -t -h mongooseim-1 --name mongooseim-1 -p 5222:5222 mongooseim/mongooseim:latest 2. 添加测试账户 do 阅读全文

posted @ 2018-05-07 13:32 荣锋亮 阅读(738) 评论(0) 推荐(0) 编辑

drone 学习六 发布部署&&集成私有容器仓库&&构建代码s3 保存
摘要:备注: 需要进行drone 以及gitlab 环境的配置,可以参考相关资料 1. 参考项目 https://github.com/rongfengliang/drone-appdemo 2. drone 构建配置(使用docker && s3 插件) pipeline: backend: image 阅读全文

posted @ 2018-05-03 13:21 荣锋亮 阅读(1031) 评论(0) 推荐(0) 编辑

hoverfly api 模拟框架了解
摘要:What is Hoverfly? Hoverfly is a lightweight, open source API simulation tool. Using Hoverfly, you can create realistic simulations of the APIs your ap 阅读全文

posted @ 2018-05-03 10:45 荣锋亮 阅读(1027) 评论(0) 推荐(0) 编辑

drone 学习一 几个核心组件
摘要:1. clone 这个是内置的,实际上就行进行代码clone的 参考配置,同时我们可以使用自定义的插件 clone: + git: + image: plugins/git pipeline: build: image: golang commands: - go build - go test 2 阅读全文

posted @ 2018-05-02 19:58 荣锋亮 阅读(759) 评论(0) 推荐(0) 编辑

drone 学习三 条件步骤
摘要:1. 基本格式 pipeline: slack: image: plugins/slack channel: dev + when: + branch: master 2. 几种条件类型 a. branch when: branch: [master, develop] b. events when 阅读全文

posted @ 2018-05-02 19:39 荣锋亮 阅读(485) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示