上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 133 下一页

2017年11月11日

gulp 合格插件评判标准

摘要: 官方插件列表: https://gulpjs.com/plugins/ 合格插件的判断标准 1. 不修改内容 如果一个插件一个文件都修改(无论是文案内容,文件路径),那么它就不是一个gulp 插件 2. 一个工具基于流的 那么就不需要使用这个gulp 插件了,直接使用这个工具就行 3. 做了太多的事 阅读全文

posted @ 2017-11-11 17:48 荣锋亮 阅读(154) 评论(0) 推荐(0)

gulp 流处理

摘要: 包含的内容: 穿插流 流合并 流队列 流筛选 1. 穿插流 // passthrough stream 把流传递给其他的 // use gulp.src(glob,{passthrough:true}) // function 进行流的合并处理,避免多余配置以及冗余代码 2. 合并流 // 使用me 阅读全文

posted @ 2017-11-11 17:29 荣锋亮 阅读(945) 评论(0) 推荐(0)

browser-sync 服务器使用

摘要: 1. 安装 npm install browser-sync or yarn add browser-sync 2. 使用(集成gulp) 备注: gulp 安装使用此处不介绍 默认的端口是3000,默认的ui界面端口3001 可以进行修改 Gulpfile.js 内容 var bSync = re 阅读全文

posted @ 2017-11-11 15:51 荣锋亮 阅读(440) 评论(0) 推荐(0)

gulp 基本使用

摘要: 1. 安装 npm install -g gulp-cli && npm install --save-dev gulp or with yarn yarn global gulp-cli && yarn add gulp 2. 使用 基本流程 1. gulp cli 启动命令行工具 2. 本地gu 阅读全文

posted @ 2017-11-11 13:08 荣锋亮 阅读(720) 评论(0) 推荐(0)

2017年11月10日

yarn  workspace 开发示例

摘要: 此为官方示例: package.json { "private": true, "workspaces": [ "workspace-a", "workspace-b" ] } Note that the private: true is required! Workspaces are not m 阅读全文

posted @ 2017-11-10 18:19 荣锋亮 阅读(2437) 评论(0) 推荐(0)

rpm 软件包离线安装

摘要: 1. 插件安装(可选) yum install yum-plugin-downloadonly 2. 只下载不安装(perl 演示) yum install --downloadonly --downloaddir=/opt/perl perl 3. 查看下载文件 ├── perl-5.16.3-2 阅读全文

posted @ 2017-11-10 18:09 荣锋亮 阅读(5295) 评论(0) 推荐(0)

nodejs docker 开发最好选择yarn 进行包管理而不是npm

摘要: npm 与yarn 的区别网上一大堆的文章,我们在构建docker 镜像是应该遵守的有些原则 基础镜像尽量小 对于构建进行缓存处理 构建的docker 的文件层数尽量少 能直接运行的,就别进行重复构建了(比如go) 基础镜像尽量小 对于构建进行缓存处理 构建的docker 的文件层数尽量少 能直接运 阅读全文

posted @ 2017-11-10 18:08 荣锋亮 阅读(4157) 评论(0) 推荐(0)

2017年11月9日

npm 私服工具verdaccio 安装配置试用

摘要: 1. 安装 npm install -g verdaccio 2. 启动 verdaccio // 界面显示信息 Verdaccio doesn't need superuser privileges. Don't run it und warn config file - /root/.confi 阅读全文

posted @ 2017-11-09 22:40 荣锋亮 阅读(4908) 评论(0) 推荐(0)

yarn 管理nextjs 项目

摘要: 预备环境 nodejs npm 1. yarn 安装 npm install -g yarn 2. nextjs 项目初始化 yarn add next react react-dom 3. 配置nextjs 项目 "scripts":{ "dev": "next", "build": "next 阅读全文

posted @ 2017-11-09 16:42 荣锋亮 阅读(1297) 评论(0) 推荐(0)

jfrog artifactory jenkins pipeline 集成

摘要: 1. 预备环境 artifactory ( 开源版本 ) maven jenkins jenkins artifactory plugin (在插件管理安装即可) 2. 配置artifactory a. maven local 仓库 b. jenkins 配置(添加 artifactory 账户信息 阅读全文

posted @ 2017-11-09 15:26 荣锋亮 阅读(11713) 评论(3) 推荐(1)

2017年11月8日

jenkins 重置密码

摘要: 说明 最近在折腾jenkins,配置用户权限时点错了,选择了安全矩阵后没有添加用户,就保存配置了,然后就报错了,提示没有Overall/Read权限。还有另外一个问题,用户的密码忘记了怎么办? 一.重置用户权限 解决方法: 打开配置文件 vim config.xml,配置文件位于jenkins主目录 阅读全文

posted @ 2017-11-08 20:42 荣锋亮 阅读(822) 评论(0) 推荐(0)

jenkins中通过execute shell启动的进程会被杀死的问题

摘要: 在jenkins中配置自动更新部署项目时,如果采取用execute shell启动/关闭tomcat,会发现可以进行关闭tomcat, 但是无法启动tomcat,虽然构建会显示执行成功,但是查看进程,tomcat是没有启动的。这是因为Jenkins默认 会在Build结束后Kill掉所有的衍生进程。 阅读全文

posted @ 2017-11-08 20:23 荣锋亮 阅读(3007) 评论(0) 推荐(2)

jfrog artifactory docker 安装试用

摘要: 预备环境(docker 安装模式,使用的免费版本): docker-ce (启用镜像加速) 1. 镜像拉取 docker.bintray.io/jfrog/artifactory-oss 2. 启动 docker run -d -p 8081:8081 docker.bintray.io/jfrog 阅读全文

posted @ 2017-11-08 20:04 荣锋亮 阅读(1846) 评论(0) 推荐(0)

2017年11月7日

goreplay(gor) golang 流量拷贝工具试用

摘要: 1. 项目地址 https://github.com/buger/goreplay 2. 安装 wget https://github.com/buger/goreplay/releases/download/v0.16.1/gor_0.16.1_x64.tar.gz tar xvf gor_0.1 阅读全文

posted @ 2017-11-07 14:30 荣锋亮 阅读(3405) 评论(0) 推荐(0)

HTML <meta> http-equiv Attribute 说明

摘要: 1. 说明 ValueDescription content-type Specifies the character encoding for the document. Example: <meta http-equiv="content-type" content="text/html; ch 阅读全文

posted @ 2017-11-07 12:32 荣锋亮 阅读(464) 评论(0) 推荐(0)

xcomponent web 跨域组件介绍

摘要: 1. 项目地址: https://github.com/krakenjs/xcomponent 2. 支持的特性 a. Render an iframe or popup on a different domain, and pass down props, including objects an 阅读全文

posted @ 2017-11-07 10:18 荣锋亮 阅读(709) 评论(0) 推荐(0)

2017年11月6日

Webpack-dashboard 简单使用

摘要: 1. 安装 npm install webpack-dashboard --save-dev 2. 配置说明 webpack config // Import the plugin: var DashboardPlugin = require('webpack-dashboard/plugin'); 阅读全文

posted @ 2017-11-06 14:24 荣锋亮 阅读(3629) 评论(0) 推荐(0)

2017年11月4日

gatsbyjs 使用

摘要: 1. 安装 npm install --global gatsby-cli 2. 使用 // 创建项目 gatsby new dalong cd dalong // 启动 gatsby develop -- 使用的是热加载端口 8000 // 编辑源码 src/pages. // 生产构建 gats 阅读全文

posted @ 2017-11-04 13:09 荣锋亮 阅读(3604) 评论(4) 推荐(0)

2017年11月3日

gatsbyjs 了解

摘要: 1. 模型 2. 总结&&资料 从模型上可以看出和jamstack 提出的架构模型比较相似,可以看成是一个具体的实现,功能还是比较强大的 https://www.gatsbyjs.org 阅读全文

posted @ 2017-11-03 22:29 荣锋亮 阅读(530) 评论(0) 推荐(0)

JAMstack 最佳实践

摘要: 摘自官方介绍,没有翻译(没必要,已经比较简单了,重要的就是进行每条的诠释了,后续。。。) Entire Project on a CDN Because JAMstack projects don’t rely on server-side code, they can be distributed 阅读全文

posted @ 2017-11-03 22:10 荣锋亮 阅读(693) 评论(0) 推荐(0)

Dawn 简单使用

摘要: 1. install npm install dawn -g 2. create project # 1. Create & Initialize $ dn init -t front # 2. Development & Real-time compilation $ dn dev # 3. Li 阅读全文

posted @ 2017-11-03 21:51 荣锋亮 阅读(269) 评论(0) 推荐(0)

JAMstack 技术要点

摘要: 1. 简要说明 Modern web development architecture based on client-side JavaScript, reusable APIs,and prebuilt Markup. When we talk about “The Stack,” we no 阅读全文

posted @ 2017-11-03 21:40 荣锋亮 阅读(565) 评论(0) 推荐(0)

Dawn 阿里开源前端开发构建工具

摘要: Dawn 取「黎明、破晓」之意,原为「阿里云·业务运营团队」内部的前端构建和工程化工具,现已完全开源。它通过pipeline 和 middleware 将开发过程抽象为相对固定的阶段和有限的操作,简化并统一了开发人员的日常构建与开发相关的工作。 特点 采用中间件技术,封装常用功能,易于扩展,方便重用 阅读全文

posted @ 2017-11-03 21:24 荣锋亮 阅读(676) 评论(0) 推荐(0)

next.js 简单使用

摘要: 1. 介绍 一个react.js 服务器端渲染开源项目(不只是服务器端渲染,直接也可以生成纯静态站点) 类似的解决方案有好多,比如react.js 自身的服务器渲染方案(但是使用起来就是比较怪异) gatsbyjs 也是一个不错的解决方案 2. 初始化项目 // 依赖 npm install --s 阅读全文

posted @ 2017-11-03 21:14 荣锋亮 阅读(14420) 评论(0) 推荐(1)

2017年11月1日

terraform 阿里云基本使用

摘要: 1. 预备环境 安装了terraform 的软件的操作系统(windows linux mac 均可) 具有阿里云账户的 access_key secret_key 2. 配置 // terraform 的配置相对比较随意,但是有几个必须注意的,文件后缀 tf 文件名不需要进行特殊说明 // 以下为 阅读全文

posted @ 2017-11-01 19:51 荣锋亮 阅读(8222) 评论(0) 推荐(0)

serf  简单使用

摘要: 1. 介绍 // 以下为官方介绍,说白了就是进行系统的集群节点管理 Serf uses an efficient gossip protocol to solve three major problems: Membership: Serf maintains cluster membership 阅读全文

posted @ 2017-11-01 14:01 荣锋亮 阅读(2103) 评论(0) 推荐(0)

2017年10月28日

几个开源faas 框架

摘要: funktion open source event based lambda programming for kubernetes 官方地址: funktion.fabric8.io serverless framework A framework - not a service github 地 阅读全文

posted @ 2017-10-28 10:36 荣锋亮 阅读(8777) 评论(0) 推荐(0)

2017年10月19日

add-apt-repository 添加

摘要: add-apt-repository 添加 需要安装的软件包 apt-get install python-software-properties 除此之外还要安装 software-properties-common apt-get install software-properties-comm 阅读全文

posted @ 2017-10-19 14:58 荣锋亮 阅读(3095) 评论(0) 推荐(0)

2017年10月12日

devops 几个方便的工具

摘要: 1. fake API [canned](https://github.com/sideshowcoder/canned ) fake API. [wiremock](http://wiremock.org/) fake API.2. ci/cd [buildbot](http://buildbot.net/ ) open source CI server.... 阅读全文

posted @ 2017-10-12 21:29 荣锋亮 阅读(216) 评论(0) 推荐(0)

web 模板引擎

摘要: baiduTemplate: http://baidufe.github.io/BaiduTemplate/ artTemplate: https://github.com/aui/artTemplate juicer: http://juicer.name/或https://github.com/ 阅读全文

posted @ 2017-10-12 10:15 荣锋亮 阅读(238) 评论(0) 推荐(0)

2017年10月11日

minio  nginx 配置

摘要: 1. 参考配置 1. 参考配置 server { listen 80; server_name example.com; location / { proxy_set_header Host $http_host; proxy_pass http://localhost:9000; } } 2. 添 阅读全文

posted @ 2017-10-11 16:31 荣锋亮 阅读(8466) 评论(0) 推荐(0)

miniofs 配置使用

摘要: 1. rpm // RPM 包下载 https://github.com/minio/minfs/releases/tag/RELEASE.2017-02-26T20-20-56Z // 安装 yum install minfs-0.0.20170226202056-1.x86_64.rpm 2. 阅读全文

posted @ 2017-10-11 16:17 荣锋亮 阅读(1380) 评论(0) 推荐(0)

2017年10月10日

openfaas 私有镜像配置

摘要: 备注: 此项目是使用nodejs 生成唯一id 的\ 预备环境 docker harbor faas-cli openfaas k8s 1. 项目初始化 faas-cli new node --lang node // 修改node.yml 镜像名称、gateway 地址 修改之后如下: provi 阅读全文

posted @ 2017-10-10 13:40 荣锋亮 阅读(1248) 评论(0) 推荐(0)

转 OpenFaaS 介绍

摘要: 来源: https://thenewstack.io/openfaas-put-serverless-function-container/?utm_source=tuicool&utm_medium=referral Why limit serverless functions to whatev 阅读全文

posted @ 2017-10-10 09:13 荣锋亮 阅读(925) 评论(0) 推荐(0)

2017年10月9日

openfaas k8s 集成

摘要: 备注 k8s 1.6 以下版本与k8s 1.6 以上版本会有一些简单的区别 1. 克隆k8s 部署文档 https://github.com/openfaas/faas-netes 2. 创建服务 2. 创建服务 2. 创建服务 2. 创建服务 2. 创建服务 // 主要是这几个yaml 文件 、注 阅读全文

posted @ 2017-10-09 10:09 荣锋亮 阅读(897) 评论(0) 推荐(0)

2017年10月8日

openfaas 架构介绍

摘要: 此为官方介绍 Overview of OpenFaaS Function Watchdog You can make any Docker image into a serverless function by adding the Function Watchdog (a tiny Golang 阅读全文

posted @ 2017-10-08 12:14 荣锋亮 阅读(3145) 评论(0) 推荐(0)

openfaas 简单试用

摘要: 1. 安装 faas-cli 参考以前文章,或者使用官方的shell脚本 2. 简单例子 mkdir rong cd rong faas-cli new rong --lang python // 默认会有简单的测试code // 生成的项目代码 rong rong.yml template // 阅读全文

posted @ 2017-10-08 12:09 荣锋亮 阅读(1264) 评论(0) 推荐(0)

openfaas cli 安装

摘要: 1. 安装脚本 curl -sL https://cli.get-faas.com/ | sudo sh 备注安装完成之后如果没有 faas-cli 可以下载脚本,手工执行 2. 使用二进制包 https://github.com/openfaas/faas/releases 配置环境变量即可 即可 阅读全文

posted @ 2017-10-08 11:51 荣锋亮 阅读(1219) 评论(0) 推荐(0)

openfaas 安装(docker swarm 模式)

摘要: 备注:为了简单使用的是docker-compose 进行组件的安装 预备环境: docker (配置好 swarm 集群模式) docker-compose 1. docker 安装 此处略去,建议使用docker-ce 新版本 2. 配置 swarm 模式 2. 配置 swarm 模式 2. 配置 阅读全文

posted @ 2017-10-08 11:49 荣锋亮 阅读(960) 评论(0) 推荐(0)

openfaas 了解

摘要: 1. 官方介绍 OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker which has first class support for metrics. Any 阅读全文

posted @ 2017-10-08 10:05 荣锋亮 阅读(1053) 评论(0) 推荐(0)

上一页 1 ··· 111 112 113 114 115 116 117 118 119 ··· 133 下一页

导航