Install cf v6

来源:互联网 发布:网络照片素材 编辑:程序博客网 时间:2024/05/01 04:34

鉴于cloudfoundry的命令行工具已经升级到v6了。

那么怎么安装,怎么使用呢?

它又与之前的v5又哪些不同呢?

Install Go

Installation&doc about go: http://golang.org/doc/install
Installer : https://code.google.com/p/go/downloads/list?can=2&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount
uninstall:

To remove an existing Go installation from your system delete the go directory. This is usually /usr/local/go under Linux, Mac OS X, and FreeBSD or c:\Go under Windows.

You should also remove the Go bin directory from your PATH environment variable. Under Linux and FreeBSD you should edit /etc/profile or $HOME/.profile. If you installed Go with the Mac OS X package then you should remove the /etc/paths.d/go file. Windows users should read the section about setting environment variables under Windows.

Download v6

installation:

(1) git clone https://github.com/cloudfoundry/cli

(2) git checkout v6.0.0

(3) bin/build

(4) out/cf (this is the cli tool v6)

Compare to V5

http://blog.cloudfoundry.com/2013/11/09/announcing-cloud-foundry-cf-v6/

[reference]


Hands on

user guide - http://docs.cloudfoundry.com/docs/using/managing-apps/cf/go-cli.html
(1) gcf login 
(2) gcf apps
(3) gcf push
➜  tnx git:(master) ✗ gcf pushUsing manifest file /Users/faramir/git/tnx/manifest.ymlUpdating app tx in org XXX / space dev as XXX ...OKUploading tx...Uploading from: /Users/faramir/git/tx/CollectionsData36.7M, 4363 filesOKStopping app tx in org XXX / space dev as XXX...OKStarting app tx in org XXX / space dev as XXX...OK-----> Downloaded app package (16M)-----> Downloaded app buildpack cache (4.0K)
0 of 1 instances running, 1 starting1 of 1 instances runningApp startedShowing health and status for app tx in org XXX / space dev as XXX...OKrequested state: startedinstances: 1/1usage: 1G x 1 instancesurls: tx.XXXX     state     since                    cpu    memory        disk#0   running   2014-02-22 10:07:36 AM   0.0%   36.7M of 1G   79.2M of 1G

mainfest.yml
---applications:- name: tx  memory: 1024M  host: tx  domain: xxx  instances: 1  path: "./CollectionsData"  command: node app.js


0 0
原创粉丝点击