简体   繁体   English

CloudFoundry Microbosh无法在AWS上部署

[英]CloudFoundry microbosh unable to deploy on AWS

I've followed the "minimal AWS deployment" guide here https://github.com/cloudfoundry/cf-release/tree/master/example_manifests to try CloudFoundry. 我在这里https://github.com/cloudfoundry/cf-release/tree/master/example_manifests遵循了“最小AWS部署”指南来尝试CloudFoundry。

I understand that I have to install the bosh_cli_plugin_micro, but when I run this on an AWS Ubuntu 14.04 VM: 我知道我必须安装bosh_cli_plugin_micro,但是当我在AWS Ubuntu 14.04 VM上运行它时:

gem install bosh_cli_plugin_micro

I get: 我得到:

ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: blobstore_client requires aws-sdk-resources (= 2.2.0); aws-sdk requires aws-sdk-v1 (= 1.60.2)

Installing the AWS ruby sdk doesn't solve the problem. 安装AWS ruby​​ sdk无法解决问题。 I suspect it's a problem of the aws sdk being a newer version than the one the micro bosh cli expects. 我怀疑aws sdk是比micro bosh cli期望的版本新的问题。 Anyone have any suggestions? 有人有什么建议吗?

One way to ensure you get a consistent set of gems would be to create a Gemfile like this: 确保获得一致的宝石集的一种方法是创建一个Gemfile如下所示:

source 'https://rubygems.org'

gem 'bosh_cli'
gem 'bosh_cli_plugin_micro'

and then run the bundle command from the same working directory as where your Gemfile is placed. 然后从与放置Gemfile相同的工作目录中运行bundle命令。 To make sure you're always using the right version of the CLI and plugin, prepend commands with bundle exec , eg 为了确保您始终使用正确版本的CLI和插件,请在bundle exec命令,例如

$ bundle exec bosh micro deploy /path/to/stemcell

You may even wish to alias bosh to bundle exec bosh . 您甚至可能希望别名化boshbundle exec bosh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM