2017-05-28 3 views
0

J'essaie de créer un buildpack hors ligne sur un système Windows 7 en suivant les étapes https://github.com/cloudfoundry/java-buildpack/#building-packages. Je manquerais à cette étape:La compilation cloudfoundry buildpack échoue en raison d'un problème de certificat

paquet paquet propre râteau exec

Journaux d'erreur:

[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 
C:/rover/buildpack_release/java-buildpack-master/lib/java_buildpack/util/cache/download_cache.rb:74:in `get' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:166:in `get_from_cache' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:158:in `block (2 levels) in uris' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:156:in `each' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:156:in `block in uris' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:155:in `each' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:155:in `uris' 
C:/rover/buildpack_release/java-buildpack-master/rakelib/dependency_cache_task.rb:44:in `initialize' 
C:/rover/buildpack_release/java-buildpack-master/Rakefile:40:in `new' 
C:/rover/buildpack_release/java-buildpack-master/Rakefile:40:in `<top (required)>' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:96:in `block in load_rakefile' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:95:in `load_rakefile' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:79:in `block in run' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run' 
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' 
C:/Ruby22-x64/bin/rake:23:in `load' 
C:/Ruby22-x64/bin/rake:23:in `<main>' 

J'ai parlé bundle install fails with SSL certificate verification error mais petit bijou mise à jour ne m'a pas aidé. Je ne suis pas sûr du rôle de RVM ici, mais quand j'ai essayé de l'installer en utilisant https://rvm.io/rvm/install, j'ai obtenu le délai d'expiration du serveur des deux serveurs mentionnés. Toute aide est appréciée. Merci d'avance.

Répondre

0

J'ai eu la réponse moi-même après un débogage. Le fichier container_certificate_trust_store.rb dans lib \ java_buildpack \ répertoire cadre est configuré pour choisir des certificats à partir d'un chemin d'accès spécifié:

DARWIN_CERTIFICATES = Pathname.new('<path to cert.pem>').freeze 

    UNIX_CERTIFICATES = Pathname.new('<path to ca-certificates.crt>').freeze 

    private_constant :DARWIN_CERTIFICATES, :UNIX_CERTIFICATES 

    def ca_certificates 
    if `uname -s` =~ /Darwin/ 
     DARWIN_CERTIFICATES 
    else 
     UNIX_CERTIFICATES 
    end 
    end 

Il n'y a pas de support par défaut pour Windows. Ajoutez un chemin pour Windows pour compiler ou compiler sur une machine Linux.