转载自: Cloud Foundry官方博客 的镜像(这里) (由于该官方微博定期更新,最新内容有所不一致)
本文是Cloud Foundry的一个简单上手指南和资料汇总,内容将根据产品的发布定期更新。
Cloud Foundry简介
Cloud Foundry是一个开源的平台即服务,它提供给开发者自由度去选择云平台,开发框架和应用服务。Cloud Foundry 最初由 VMware 发起,得到了业界广泛的支持,它使得开发者能够更快更容易的开发,测试,部署和扩展应用。Cloud Foundry 是一个 开源项目 ,用户可以使用多种私有云发行版,也可以使用公共云服务,包括 CloudFoundry.com。
什么是开源的PaaS平台?
每一代计算都会开创一个新的应用平台。在云计算时代,应用平台将会作为一种服务来发布, 通常我们称之为PaaS(平台即服务)。PaaS使得部署,运行和横向扩展应用变得非常容易。并非所有的PaaS提供的能力是都是一样的,有一些只支持有限的语言和框架,且不提供云应用所需的关键应用服务,或者限制只能部署到一个单一的云上。我们通过提供一个开放的PaaS平台,可以让您选择部署到哪个云去上,使用哪些框架用于开发和哪些应用服务用于运行您的应用。作为一个开源项目,我们拥有一个成熟的社区,该社区既能为Cloud Foundry的发展做出贡献,又能支持Cloud Foundry的使用。
为什么用Cloud Foundry?
针对不用类型的编程语言和框架,Cloud Foundry都支持应用的上载、自动配置和服务绑定,每一种语言框架类型都有微小的差异,请根据常用的语言框架对号入座:
Spring Applications:http://docs.cloudfoundry.com/frameworks/java/spring/spring.html
Grails Applications:http://docs.cloudfoundry.com/frameworks/java/spring/grails.html
Node.js Applications:http://docs.cloudfoundry.com/frameworks/nodejs/nodejs.html
Ruby Applications:http://docs.cloudfoundry.com/frameworks/ruby/ruby.html
Rails Applications:http://docs.cloudfoundry.com/frameworks/ruby/rails-3-0.html
Cloud Foundry的学习资料
相信有经验的开发者已经可以使用Cloud Foundry和vmc进行简单的应用部署了,如果需要更进一步了解Cloud Foundry的工作方式和各类应用的支持细节,需要花时间做深入的学习。以下是国外和国内的各种Cloud Foundry学习资料汇总:
国外
Cloud Foundry官方网站:http://www.cloudfoundry.com/
Cloud Foundry技术文档:http://docs.cloudfoundry.com/getting-started.html
Cloud Foundry官方博客:http://blog.cloudfoundry.com/
Cloud Foundry技术支持论坛:http://support.cloudfoundry.com/home
上面这些网站和论坛由Cloud Foundry美国研发团队和产品市场部门维护,虽然内容是全英文的,但是信息的更新基本上与产品发布同步,有很多非常不错的blog文章和技术指南,另外值得一提的是技术支持论坛,美国由专职的Cloud Foundry工程师负责解答论坛,基本上提出的问题都会在12-24小时内被解答。
VMware中国开发者关系团队目前正在加紧整理制作Cloud Foundry的中文内容,以下是目前已经推出的:
Cloud Foundry中文网站:http://prchina.cloudfoundry.com/
Cloud Foundry官方微博:@CloudFoundry http://weibo.com/u/2169336083
Cloud Foundry中文博客:http://blog.sina.com.cn/u/2169336083
Cloud Foundry优酷站点:http://u.youku.com/CloudFoundryCN
Cloud Foundry云计算大会PPT和视频下载:
【主题演讲】:
Chris Richardson——Cloud Foundry BootCamp 视频
【编程语言与架构专场】
Patrick Chanezon——Node.js简介
Chris Richardson——Spring带你步入云端
Patrick Chanezon——Cloud Foundry中Ruby的应用
【数据库专场】
Chris Richardson——SQL, NoSQL, NewSQL 开发者如何应对 视频
Victor Jieh——CloudFoundry中MongoDB的应用
Long Wang——为开发者量身定做数据库云平台
【解决方案和合作伙伴专场】
Alan Ren——云海大盗,放飞梦想 MSP, ISV & SI合作伙伴联盟
Lei Cong 新浪云计算——SAE之路-共创PaaS未来
Figo Feng/Stephen Hu——CloudFoundry服务网关的架构
Bill Sun——Mozy云服务
银基云——银基云
优酷上有完整的本次云计算大会的视频内容:
http://www.youku.com/playlist_show/id_17333402.html
Micro Cloud Foundry是运行于虚拟机中的Cloud Foundry实例,VMware提供预先装好配置好的环境,供开发人员本地编写和调试Cloud Foundry相关的应用。Micro Cloud Foundry是一个1GB大小的Ubuntu虚拟机,考虑到很多网友反映国内下载速度非常慢,我们制作了如下几个镜像站点。
Micro Cloud Foundry微盘镜像站点:http://vdisk.weibo.com/s/41k6s
Micro Cloud Foundry教育网下载镜像 (鸣谢
IPv4: http://ftp.sjtu.edu.cn/sites/cloudfoundry/
IPv6: http://ftp6.sjtu.edu.cn/sites/cloudfoundry/
Micro Cloud Foundry 电信联通双线10M带宽镜像 (鸣谢 VMware 战略合作伙伴银基科技
下载页面:http://www.yinji.com.cn/cloudfoundry.asp
下载地址:http://cloudfoundry.yinjiddc.cn/micro-1.2.0.zip
开源代码贡献和私有云搭建
Cloud Foundry不仅是一个灵活易用的应用托管PaaS平台,更是一个开源开放的技术社区。如果开发者有兴趣为Cloud Foundry添砖加瓦,可访问 http://www.cloudfoundry.org/ 和 https://github.com/cloudfoundry,了解代码库的结构和社区贡献的流程。本月(2012年4月),VMware更新了社区代码管理的工具,使得社区开发者可以和VMware内部团队共享同样的代码审核、发布流程和工具。Mark Lucovsky为此有一段视频介绍,大家可以看看:http://v.youku.com/v_show/id_XMzgyMDQyMDgw.html
如果需要使用Cloud Foundry搭建PaaS平台,目前有两种方法:dev_setup和BOSH。dev_setup相对简单,适合做实验性质的部署,BOSH要高级一些,针对各类IaaS做自动化的部署,通过实现CPI接口可以支持各种IaaS,目前BOSH带有vSphere和AWS的CPI。
dev_setup的步骤在这里:http://support.cloudfoundry.com/entries/20407923-single-multi-node-vcap-deployment-using-chef
BOSH的文档请看(有点长):https://github.com/cloudfoundry/oss-docs/blob/master/bosh/documentation/documentation.md
源码,安装工具都有了,还等什么,赶紧动手搭建属于你自己的PaaS吧!
There is one more thing: we are hiring!
VMware Cloud Foundry中国研发团队正在招聘SRE(Site Reliability Engineer)。SRE负责Cloud Foundry云计算PaaS的搭建、部署、维护和日常运营,需要候选人有扎实的编程能力、系统运维经验和大型平台管理能力。SRE又称为DevOps,是21世纪云计算时代紧缺的开发+运维类复合型人才。具体的JD和申请方式如下:
该职位base在VMware上海研发中心,请将简历发送至:
peterzhang[at]vmware.com (注明“申请SRE”)
Cloud Foundry is the industry’s first open platform as a service, supporting multiple languages, frameworks, and services. As an engineer on the Platforms team, you will be building and operating the infrastructure automation platform that we use to power Cloud Foundry. Your job will be to ensure that our software is released and deployed in an efficient and streamlined manner, from development, to QA/Staging, and into production. This is a hands on operational role with a balanced amount of tool and infrastructure development.
Our team is composed of well known industry veterans with a long history of building and operating large scale distributed systems. Our guys are leading open source developers, innovators, and researchers. We are self-starters with a hands off management team that shields us from unnecessary bureaucracy. We have lives, we work flexible hours, we run a large scale service and we launch product.
Success in this role requires well developed analytical and code-level troubleshooting abilities, an ability to analyze a complex system behavior or performance problem, an ability to trace issues across multiple systems, ability to work under pressure as a first responder, and finally, an ability to learn from your hands on operational role and then help create even more powerful tools and processes.
Cloud Foundry is the industry’s first Open PaaS. It can support multiple frameworks, multiple cloud providers, and multiple application services all on a cloud scale platform. Our core platform is open source, and can be found on github athttps://github.com/cloudfoundry.
Responsibilities
- Create and deploy Cloud Foundry into staging, QA, and production environments. This includes troubleshooting and problem isolation.
- Develop automation, processes, and tools designed to this process simpler and more robust.
- Participate in troubleshooting, capacity planning and analysis, performance analysis activities.
Requirements
- BA/BS in Computer Science preferred, or equivalent experience
- Hands on operational experience in a high-volume or critical production service environment
- At least 7 years experience with Linux/Unix systems administration
- Solid scripting skills, Ruby experience is a big plus
- IP networking, including familiarity with the functionality, operating, and failure modes of networks.
- Proven technical troubleshooting and performance tuning experience.
- Ability to handle periodic on-call duty as well as spider-sense awareness of services’ health.
以上内容会定期更新,请大家关注Cloud Foundry官方网站和微博。