Environment: OS X
Fission: 0.7.1
Kubernete: Minikube v0.26.0
Check front-end/helper/index.js and replace fission port number with your native configuration.
$ fission function create --name serverless-catalogue --code /serverless-catalogue/native/serverless-catalogue.js
$ fission route create --url /serverless-catalogue --function serverless-catalogue
$ cd front-end
$ npm install && npm start
$ cd ../microservice-catalogue
$ docker-compose up
https://www.virtualbox.org/wiki/Downloads
$ brew install kubectl
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
$ minikube start
$ curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.7.0-darwin-amd64.tar.gz
$ tar xzf helm-v2.7.0-darwin-amd64.tar.gz
$ mv darwin-amd64/helm /usr/local/bin
$ helm init
$ helm install --namespace fission --set serviceType=NodePort https://github.com/fission/fission/releases/download/0.7.1/fission-all-0.7.1.tgz
$ curl -Lo fission https://github.com/fission/fission/releases/download/0.7.1/fission-cli-osx && chmod +x fission && sudo mv fission /usr/local/bin/
$ fission env create --name nodejs --image fission/node-env
$ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js
$ fission function create --name hello --env nodejs --code hello.js
$ fission route create --method GET --url /hello --function hello
$ fission function test --name hello
Some workflow to improve efficiency.
$ fission function list
$ fission route list
$ fission function test --name <function-name>
$ fission function logs --name <function-name>
$ kubectl get namespaces
$ kubectl get pods -n kube-system
$ helm list
$ kubectl get pods -n fission-function
$ kubectl get svc -n fission
$ docker stop (docker ps -aq)
$ docker rmi (docker images -aq)
$ sudo lsof -i:80
$ top