1. 预备环境
docker 17.05
docker hub account (测试可选)
2. 安装
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
3. 简单例子
     a. 启动服务
     fn start
     b. go  项目例子
       func.go
   package main
import (
"fmt"
)
func main() {
fmt.Println("Hello from Fn!")
}
    c. 运行项目
# Initialize your function
# This detects your runtime from the code above and creates a func.yaml
fn init # Set your Docker Hub username
export FN_REGISTRY=<DOCKERHUB_USERNAME> # Test your function
# This will run inside a container exactly how it will on the server
fn run # Deploy your functions to the Fn server (default localhost:8080)
# This will create a route to your function as well
fn deploy --app myapp
 
 
4. 管理界面
     
    docker 运行模式 
docker run --rm -it --link functions:api -p 4000:4000 -e "API_URL=http://api:8080" fnproject/ui
 
 
  如下:
 
5. 参考资料
https://github.com/fnproject/ui
https://github.com/fnproject/fn
 
 
 
 

最新文章

  1. 枚举扩展方法获取枚举Description
  2. [转]Teach Yourself Programming in Ten Years——用十年教会自己编程
  3. windows自定义命令的创建
  4. 【转】随机函数的rand、srand用法
  5. C语言strdup函数
  6. Asp.net 网站防攻击安全设置
  7. Open quote is expected for attribute &quot;property&quot; associated with an element type &quot;result&quot;.错误
  8. 点亮LED(库函数实现)
  9. 黑马程序员——OC与C语言的异同比较
  10. PHP简单MVC架构
  11. ASP.NET 中的定时执行任务
  12. 2015第15周日PostgreSQL学习
  13. 3390: [Usaco2004 Dec]Bad Cowtractors牛的报复
  14. mysql清空表
  15. 一个简单而实用的JQ插件——lazyload.js图片延迟加载插件
  16. 聊聊Unity2018的LWRP和混合光照
  17. spring深入学习(四)-----spring aop
  18. python第六天函数,定义、调用、不带参函数、带参函数等
  19. canvas-5Bezier-QuadraticCurveTo.html
  20. centos 安装git服务器,配置使用证书登录并你用hook实现代码自动部署

热门文章

  1. CSS3鼠标悬停8种动画特效
  2. windows10下Python如何设置环境变量
  3. SpringBoot 通用Error设计
  4. [POI2006]MET-Subway
  5. merge two sorted lists, 合并两个有序序列
  6. GO学习笔记:函数defer
  7. ipmitool 查看硬件信息
  8. Matplotlib -多组线用不同的线性、颜色、节点绘制
  9. CC 攻击检测研究现状
  10. 【scala】模式匹配