commit | a720f9895ef65098b04a70cb2b83cd93346621f2 | [log] [tgz] |
---|---|---|
author | David Liu <david.liu@cn.ibm.com> | Wed Jan 04 16:08:04 2017 +0800 |
committer | David Liu <david.liu@cn.ibm.com> | Wed Jan 04 16:08:04 2017 +0800 |
tree | 6f5576f025dad2d16172822f14dfce5bcc81476c | |
parent | 134fe2d4073c5ec892d1170b02926b949e509ecf [diff] |
Update the godep file and README to tell user how to build with godep tool. Fix issue #74.
wskdeploy
wskdeploy
is a utility to help you create and deploy OpenWhisk projects. Deploy all your actions, triggers, and rules using a single command! You can use this in addition to the OpenWhisk CLI.
wskdeploy
is currenty under development and in its very early stages. Check back often to see how its progressing.
wskdeploy
is written in Go.
Setup your Go development environment.
wskdeploy
depends on the github.com/openwhisk/openwhisk-client-go/whisk
. To install:
go get github.com/openwhisk/openwhisk-client-go/whisk
$GOPATH/src/github.com/openwhisk
, which should have been created by Step #2.$ cd $GOPATH/src/github.com/openwhisk $ git clone http://github.com/openwhisk/wskdeploy
$GOPATH/src/github.com/openwhisk/wskdeply
:$ git checkout development ## or skip this step and just build master $ go get -t -d ./... $ go build
$ go get github.com/tools/godep ## Install the godep tool. $ godep get ## Download and install packages with specified dependencies. $ godep go build ## build the wskdeploy tool.
Note: we have no releases yet so you should build the development
branch.
#How to Build with Docker. If you don't want to bother with go installation, build, git clone etc, you can do it with Docker, then you can run wskdeploy tool in your container.
First you need a docker daemon running locally on your machine or whatever in a VM etc.
Get the Docker file.
wget -O Dockerfile https://raw.githubusercontent.com/openwhisk/wskdeploy/master/Dockerfile
docker build -f Dockerfile . -t openwhisk/wskdeploy
docker run -ti openwhisk/wskdeploy
wskdeploy
and have fun.Note: Based on user role, you may need add sudo before your command to run as root.