标签:运行 sans 1.5 rip font localhost ons fun cti
docker 17.05
docker hub account (测试可选)
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
fn start
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello from Fn!")
}
# 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
docker run --rm -it --link functions:api -p 4000:4000 -e "API_URL=http://api:8080" fnproject/ui
https://github.com/fnproject/ui
https://github.com/fnproject/fn
标签:运行 sans 1.5 rip font localhost ons fun cti
原文地址:http://www.cnblogs.com/rongfengliang/p/7627169.html