本文介绍了bluemix容器无法一起添加用户定义的服务和Watson服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个用户定义的服务(Compose Mongo DB)和Watson对话服务。我想将这两个服务绑定到部署在IBM Container中的应用程序,但是我无法做到这一点。

I have created a user-defined service (Compose Mongo DB) and Watson Dialog Service. I want to bind both services to my app deployed in IBM Container, however, I am not able to do.

我尝试过这些,但无效:

I tried these, but none works:


  1. 我尝试使用 BIND_TO ,但我只能绑定一个服务(例如使用UI分隔的逗号 - BIND_TO:MongoBridge,WatsonBridge

  2. 当我创建具有2服务绑定的桥CF时,它不起作用(例如使用UI - BIND_TO:MongoWatsonBridge 其中MongoWatsonBridge具有用户 - 定义的Mongo服务 - 只是URL - & Watson对话服务绑定)

  3. 当我尝试 BIND_TO 用户定义时,+ Watson服务使用--env CCS_BIND_SRV,它不起作用(例如 BIND_TO:MongoWatsonBridge ,还 - env CCS_BIND_SRV = Watson-Dialog-Service

  1. I tried using BIND_TO, but I can only bind 1 service (e.g. Use comma separated using UI - BIND_TO : MongoBridge, WatsonBridge)
  2. When I create bridge CF with 2 services bind, it doesn't work either (e.g. Using UI - BIND_TO : MongoWatsonBridge where MongoWatsonBridge has user-defined Mongo service - just URL - & Watson Dialog service bind)
  3. When I tried to BIND_TO user-defined, + Watson service with --env CCS_BIND_SRV, it doesn't work either (e.g. BIND_TO : MongoWatsonBridge, also --env CCS_BIND_SRV=Watson-Dialog-Service)

当然用户定义不适用于 - env CCS_BIND_SRV = MongoBridge - Bluemix抛出错误

Of course, user-defined doesn't work with --env CCS_BIND_SRV=MongoBridge - Bluemix throws error

我可以单独绑定每个服务,尽管(使用 BIND_TO for MongoBridge,使用 - env CCS_BIND_SRV = Watson-Dialog-Service

I can individually bind each service though (using BIND_TO for MongoBridge, using --env CCS_BIND_SRV=Watson-Dialog-Service)

请让我知道,如果它是支持的,或者它是一个错误,它假设工作,但不是或者还有其他方法来绑定这两个服务。

Please let me know if it is supported, or it is a bug that it suppose to work, but not working, or there is other way to bind both services.

推荐答案

用户定义的服务不支持服务密钥生成无法使用CCS_BIND_SRV参数进行绑定。可以将这两个服务绑定到容器的唯一方法是使用CF桥应用程序。创建一个CF桥应用程序,并将这两个服务(用户定义和Watson)绑定到此应用程序。然后使用命令行中的CCS_BIND_APP =环境变量将此应用程序绑定到容器。

the user-defined service does not support service key generation so it cannot be bound using the "CCS_BIND_SRV" parameter. The only way you can bind both these services to the container is by using a CF bridge app. Create a CF bridge app and bind both these services (user-defined and Watson) to this app. Then bind this app to the container using the "CCS_BIND_APP=" environment variable in the command line.

这篇关于bluemix容器无法一起添加用户定义的服务和Watson服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 10:24