bluemix container cannot add user-defined service and Watson service together

那年仲夏 提交于 2019-12-25 01:17:57

问题


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. 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)

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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/36607115/bluemix-container-cannot-add-user-defined-service-and-watson-service-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!