Install cf v6

鉴于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 push
Using manifest file /Users/faramir/git/tnx/manifest.yml


Updating app tx in org XXX / space dev as XXX ...
OK


Uploading tx...
Uploading from: /Users/faramir/git/tx/CollectionsData
36.7M, 4363 files
OK


Stopping app tx in org XXX / space dev as XXX...
OK


Starting 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 starting
1 of 1 instances running


App started


Showing health and status for app tx in org XXX / space dev as XXX...
OK


requested state: started
instances: 1/1
usage: 1G x 1 instances
urls: 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


发布了386 篇原创文章 · 获赞 19 · 访问量 82万+

猜你喜欢

转载自blog.csdn.net/watson243671/article/details/19674061