如何在cf内运行的应用程序中添加mongodb服务? [英] How to add mongodb service in application running inside cf?

查看:108
本文介绍了如何在cf内运行的应用程序中添加mongodb服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在流浪者机器上运行的cf中部署了我的应用程序.但是我的应用程序需要mongodb.我不知道如何添加.有人可以帮我吗?

I have deployed my application in cf running on vagrant machine.But my application requires mongodb .I don't know how to add.Can anyone please hep me with this.

rle0249@rle0249-Latitude-3450:~/CloudFoundry$ cf service-brokers Getting service brokers as admin...

rle0249@rle0249-Latitude-3450:~/CloudFoundry$ cf service-brokers Getting service brokers as admin...

name url
No service brokers found

name url
No service brokers found

谢谢

推荐答案

在提供MongoDB服务或任何其他服务之前,需要先向CF注册适当的服务代理.服务代理可以在任何地方运行,但通常在CF端沿BOSH部署,然后注册到CF.

Before you can provision a MongoDB service, or any other service, you need to have an appropriate service broker registered with CF. Service brokers can run anywhere, but are often BOSH-deployed along side CF and then registered to CF.

不幸的是,我不知道有任何可用于CF的开源MongoDB服务代理.有一个示例项目演示了如何构建自己的MongoDB服务代理,但是它只是一个样本,并不准备投入生产.

Unfortunately, I am not aware of any open-source MongoDB service brokers available for CF. There is a sample project that demonstrates building your own MongoDB service broker, but it is only a sample and is not intended to be production ready.

这篇关于如何在cf内运行的应用程序中添加mongodb服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆