我遇到运行
的问题/local/mis/ruby/bin/bundle exec /local/mis/ruby/bin/rake package OFFLINE=true PINNED=true
它抛出:
[DownloadCache] WARN Unable to download https://java-buildpack.cloudfoundry.org/groovy/index.yml into cache build/staging/resources/cache: SSL_connect returned=1 errno=0 state=error: certificate verify failed
rake aborted!
Unable to find cached file for https://java-buildpack.cloudfoundry.org/groovy/index.yml
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/lib/java_buildpack/util/cache/download_cache.rb:75:in `get'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:167:in `get_from_cache'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:159:in `block (2 levels) in uris'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:157:in `each'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:157:in `block in uris'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:156:in `each'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:156:in `uris'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/rakelib/dependency_cache_task.rb:45:in `initialize'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/Rakefile:40:in `new'
/local/mis/bamboo/home/xml-data/build-dir/93683714-93782019/java-buildpack/Rakefile:40:in `<top (required)>'
/local/mis/ruby/bin/bundle:22:in `load'
/local/mis/ruby/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
$
我不知道如何解决这个问题。我不知道该修复什么:捆绑?耙?红宝石?
我尝试使用
制作.gemrc:ssl_verify_mode: 0
请注意.gemrc文件的格式。我需要添加以下内容吗?
- https://cloudfoundry.org
:ssl_verify_mode: 0
(猜测不是宝石抛出错误,因为那不起作用)
我试过了:
echo | openssl s_client -connect cloudfoundry.org:443 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cert.pem
然后我cat >> /etc/ssl/certs/ca-bundle.crt
这是对的吗? ruby,bundle,rake或其他任何需要它的ca-bundle.crt
文件?
我对如何通过cloudfoundry获取java-bundle的https位置感到茫然。