如何在本地服务器上安装CloudFoundry [英] How to install CloudFoundry on local server
问题描述
我知道CF是为在多个云服务上运行而创建的,用于微服务应用程序的一个统一视图。但是,我想在CentOS本地服务器上安装并运行cloud Foundry。在其他方面,我想在一台运行CF的服务器上将我的私有云设置为基于微服务的应用程序容器。
I know that CF is made for running on multiple cloud services for one unified view of an microservice app. However, I would like to install and run the cloud foundry on my CentOS local server. In other wourds I would like to setup my private "cloud" on one server running CF as a microservice-based app container.
如何在我的本地服务器上安装CF,以便以后可以出于教育目的在本地服务器上部署一些微服务,以进行微服务乒乓测试? / strong>
How can I install CF on my local server so that later I could deploy some microservices on the local server for educational purposes, for microservice ping pong testing?
推荐答案
设置CF(Cloud Foundry)
* *更新**
可能最简单的方法是PCF开发 https://pivotal.io/pcf-dev BOSH Lite提供了更多选择,但是对于大多数尝试CF的人,我建议PCF开发人员。
Setup CF (Cloud Foundry)
** UPDATE ** Probably the easiest way is PCF Dev https://pivotal.io/pcf-dev BOSH Lite gives you more options, but for most people just trying out CF I would recommend PCF Dev.
最简单的方法是使用BOSH Lite部署CF。您可能需要16gb的内存。
Easiest way is to deploy CF using BOSH Lite. You will probably need 16gb of ram.
安装Vagrant
gem install vagrant
下载BOSH Lite
git clone https://github.com/cloudfoundry/bosh-lite
启动BOSH Lite
cd bosh-lite
vagrant up --provider=virtualbox
Target Bosh精简版
bosh target 192.168.50.4 lite
用户名/密码: admin / admin
添加所需的路线
bin/add-route
下载干细胞
wget https://s3.amazonaws.com/bosh-warden-stemcells/bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
安装BOSH CLI
gem install bosh_cli --no-ri --no-rdoc
上传BOSH Lite CF使用的干细胞
bosh upload stemcell bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
下载CF
git clone https://github.com/cloudfoundry/cf-release.git --recursive
生成CF BOSH Lite清单
scripts/generate-bosh-lite-dev-manifest
创建,上传和部署发行版
bosh create release --force && bosh upload release && bosh -n deploy
^^^这需要一段时间^^^
^^^ This will take awhile ^^^
安装CF CLI
请参阅此处的说明:
https://github.com/cloudfoundry/cli
登录到CF
cf login -a https://api.bosh-lite.com --skip-ssl-validation -u admin -p admin
创建组织
cf create-org org
创建空间
cf create-space space -o org
目标组织和空间
cf target -o org -s space
推送应用
cf push
应该这样做!
这篇关于如何在本地服务器上安装CloudFoundry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!