我回顾了项目并尝试在服务器上安装它
我将使用Couchdb作为数据库服务。
我的主要问题是:如何在云创建中使用CouchDB?
我安装了一个CF实例: vcap_dev_setup -c devbox_all.yml -D mydomain.com
devbox.yml包含:
$ install :
- all.在此安装中,默认情况下存在couchdb_node和couchdb_gateway。但从总体上看,这似乎是一种错误。例如,当我删除一个应用程序并出现此错误时:
$ vmc delete notes2
Provisioned service [mongodb-d216a] detected, would you like to delete it? [yN]: y
Provisioned service [redis-8fcdc] detected, would you like to delete it? [yN]: y
Deleting application [notes2]: OK
Deleting service [mongodb-d216a]: Error 503: Unexpected response from service gateway 所以我尝试用这个配置安装一个CF实例。(一种标准的单节点,有红发、沙发和芒果)
conf.yml:
$ jobs:
install:
- nats_server
- router
- stager
- ccdb
- cloud_controller:
builtin_services:
- redis
- mongodb
- couchdb
- health_manager
- dea
- uaa
- uaadb
- redis_node:
index: "0"
- couchdb_node:
index: "0"
- mongodb_node:
index: "0"
- coudb_gateway
- redis_gateway
- mongodb_gateway首先,这个配置不起作用,因为“couchdb”选项不是一个可评估的关键字(在内置服务中)
那我做错什么了?妨碍了沙发的整合,而且上周还没完成?
为了继续,我成功地安装了CF实例,没有couchdb内置服务选项,而是使用了一个couchdb_node和一个couchdb_gateway。然后就开始了。我想这项服务是可以运行的。
但是我不能在我的应用程序manifest.yml中使用'couchdb‘,也不能选择这个服务来绑定。(这似乎很正常,因为它不是作为服务安装的)
所以,它看起来离工作很近,但它不是。
我在这里寻找关于这个主题的想法和建议,因为我没有发现人们在网上谈论。
谢谢你读给我听。卢卡斯
发布于 2012-09-17 14:17:58
我决定自己试一试,看起来效果不错。我用vcap_dev_setup和下面的配置创建了一个新的VCAP实例。
---
deployment:
name: "cloudfoundry"
jobs:
install:
- nats_server
- cloud_controller:
builtin_services:
- mysql
- postgresql
- couchdb
- stager
- router
- health_manager
- uaa
- uaadb
- ccdb
- dea
- couchdb_gateway
- couchdb_node:
index: "0"
- postgresql_gateway
- postgresql_node:
index: "0"
- mysql_gateway
- mysql_node:
index: "0"我能够将CouchDB实例绑定到节点应用程序,并从VCAP_SERVICES读取服务信息,如下所示;
'{"couchdb-1.2":[{"name":"couchdb-c7eb","label":"couchdb-1.2","plan":"free","tags":["key-value","cache","couchdb-1.2","couchdb"],"credentials":{"hostname":"127.0.0.1","host":"127.0.0.1","port":5984,"username":"7f3c0567-89cc-4240-b249-40d1f4586035","password":"8fef9e88-3df2-46a8-a22c-db02b2917251","name":"dde98c69f-01e9-4e97-b0d6-43bed946da95"}}]}'我还能够将服务隧道到本地端口,并连接到您可以在此图像中看到的本地端口。

您用过什么版本的Ubuntu来安装VCAP?
https://stackoverflow.com/questions/12458058
复制相似问题