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

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 荣锋亮 阅读(1018) 评论(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 荣锋亮 阅读(753) 评论(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 荣锋亮 阅读(479) 评论(0) 推荐(0) 编辑

drone 学习二 pipeline 说明
摘要:1. 基本语法 pipeline: backend: image: golang commands: - go build - go test frontend: image: node commands: - npm install - npm run test - npm run build 2 阅读全文

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

drone 学习四 几个有用的命令
摘要:1. 安装cli 工具 linux curl -L https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_linux_amd64.tar.gz | tar zx sudo install -t /usr/local/bin 阅读全文

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

drone 学习五 集成gitlab 配置以及简单测试
摘要:备注: 使用docker-compose 进行安装 同时集成gitlab,预备环境 docker docker-compose gitlab 1. docker-compose version: '3' services: drone-server: image: drone/drone:0.8 p 阅读全文

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

ambassador kubernetes native api gateway
摘要:github 上的介绍: Ambassador is an open source Kubernetes-native API Gateway built on Envoy, designed for microservices. Key features include: Self-service 阅读全文

posted @ 2018-04-30 09:48 荣锋亮 阅读(820) 评论(0) 推荐(0) 编辑

使用distillery 实现版本的动态升级&& 动态降级
摘要:备注: distillery 使用很棒的elixir 打包构建工具,下面演示的是升级以及降级 1. 参考项目 https://github.com/rongfengliang/phoenix-rest-demo.git 备注: 此项目已经以及配置distillery了,可以参考文档 2. 升级&& 阅读全文

posted @ 2018-04-19 21:18 荣锋亮 阅读(393) 评论(0) 推荐(0) 编辑

phoenxi elixir 框架几个方便的命令
摘要:1. 已有命令 mix app.start # Starts all registered apps mix app.tree # Prints the application tree mix archive # Lists installed archives mix archive.build 阅读全文

posted @ 2018-04-19 10:21 荣锋亮 阅读(411) 评论(0) 推荐(1) 编辑

phoenix elixir 框架简单试用
摘要:备注: 官方提供的脚手架工具,我们可以直接使用,生成代码,同时需要nodejs 环境配置(比较简单,参考 相关资料即可) 1. 安装脚手架 mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_ 阅读全文

posted @ 2018-04-18 11:54 荣锋亮 阅读(2409) 评论(0) 推荐(1) 编辑

k8s helm 包管理私服chartmuseum 安装
摘要:备注: 预备环境需要安装helm 1. 安装chartmuseum 参考 # on Linux curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum # on macOS cu 阅读全文

posted @ 2018-04-17 10:21 荣锋亮 阅读(1104) 评论(0) 推荐(0) 编辑

osquery简单试用
摘要:备注: osquery facebook 开源的将操作系统指标转换为sql 查询,方便好用,很适合devops 性能分析,系统监控 1. 安装 参考 https://osquery.io/downloads/official/2.11.2 我使用的是centos 使用rpm 包安装 wget htt 阅读全文

posted @ 2018-04-14 20:50 荣锋亮 阅读(4097) 评论(0) 推荐(1) 编辑

使用gopherjs 进行web 应用开发
摘要:1. 安装 go get -u github.com/gopherjs/gopherjs 2. 基本代码使用 备注: 这个只是一个简单的demo,进行pi 运算,结果还真是快 a. code golang package main import ( "fmt" "math" "time" ) fun 阅读全文

posted @ 2018-04-13 11:02 荣锋亮 阅读(1191) 评论(0) 推荐(0) 编辑

elixir grpc 试用
摘要:备注: elixir grpc 封装测试 1. 安装 a. 安装 protoc 参考相关文档,比较简单 b. 安装elixir grpc 插件 protoc-gen-elixir 同时配置环境变量 2. 基本项目使用 a. 创建项目 mix new appdemo cd appdemo touch 阅读全文

posted @ 2018-04-12 21:32 荣锋亮 阅读(671) 评论(0) 推荐(0) 编辑

elixir 几种安装方式
摘要:1. yum yum 源(直接放弃,版本太老) 2. 使用预编译包 wget https://github.com/elixir-lang/elixir/releases/download/v1.6.4/Precompiled.zip 配置环境变量 export PATH="$PATH:/path/ 阅读全文

posted @ 2018-04-10 17:16 荣锋亮 阅读(440) 评论(0) 推荐(0) 编辑

elixir 使用mix umbrella 模块化项目
摘要:备注: 项目比较大, 模块比较多,一般使用mix 的方式是大家进行文件夹的划分,但是使用mix 的umbrella 可能会更方便 1. 安装 默认安装elixir 的时候已经包含了这个功能 2. 基本使用 a. 创建根项目 mix new <projectname> --umbrella 生成的项目 阅读全文

posted @ 2018-04-08 11:21 荣锋亮 阅读(453) 评论(0) 推荐(0) 编辑

nginx unit 安装试用
摘要:1. yum 源 nano /etc/yum.repos.d/unit.repo 内容 [unit] name=unit repo baseurl=https://packages.nginx.org/unit/centos/$releasever/$basearch/ gpgcheck=0 ena 阅读全文

posted @ 2018-04-07 13:06 荣锋亮 阅读(592) 评论(0) 推荐(0) 编辑

nginx ngscript 简单使用
摘要:备注: 默认没有集成到nginx包里,需要单独安装(推荐使用动态模块的方式进行安装) 1. 安装 wget https://nginx.org/download/nginx-1.13.11.tar.gz hg clone http://hg.nginx.org/njs // njs 模块克隆 ./c 阅读全文

posted @ 2018-04-07 12:22 荣锋亮 阅读(520) 评论(0) 推荐(0) 编辑

memsql 基本安装试用
摘要:备注:使用docker 进行安装 1. 基本准备 a. 环境检查(必须,不然会有服务启动异常的问题) docker run --rm memsql/quickstart check-system b. 启动 docker run -d -p 3306:3306 -p 9000:9000 --name 阅读全文

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

使用vigil 监控微服务系统包含可视化界面
摘要:1. 安装 a. rust cargo cargo install vigil-server b. docker docker pull valeriansaliou/vigil:v1.3.0 2. 配置说明 使用起来需要的就是配置文件 config.cfg,配置还是比较简单的,从字面意思可以看明白 阅读全文

posted @ 2018-03-30 14:51 荣锋亮 阅读(303) 评论(0) 推荐(0) 编辑

导航