首页 > 其他 > 详细

Install cf v6

时间:2014-02-23 02:43:03      阅读:429      评论:0      收藏:0      [点我收藏+]

鉴于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


Install cf v6

原文:http://blog.csdn.net/samurais/article/details/19674061

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!