Date
1 - 4 of 4
How to build binaries for buildpacks?
Alexander Lomov <alexander.lomov@...>
Thank you for that useful answer, Matthew.
toggle quoted messageShow quoted text
------------------------ Alex Lomov *Altoros* — Cloud Foundry deployment, training and integration *Twitter:* @code1n <https://twitter.com/code1n> *GitHub:* @allomov <https://gist.github.com/allomov>
On Tue, Aug 11, 2015 at 8:33 PM, Matthew Horan <mhoran(a)pivotal.io> wrote:
Hey Alex -
|
|
Matthew Horan
Hey Alex -
Check out the binary-builder repo on GitHub [1]. In particular, the Ruby blueprint [2]. The binary builder is used by our CI pipeline [3] to produce the binaries bundled in the buildpacks. The README [4] includes instructions on how to run binary-builder locally, and the CI repository includes a script [5] for building binaries via a script. Best, Matt [1] https://github.com/cloudfoundry/binary-builder [2] https://github.com/cloudfoundry/binary-builder/blob/master/templates/ruby_blueprint.sh.erb [3] https://github.com/cloudfoundry/buildpacks-ci/blob/master/pipelines/binary-builder.yml [4] https://github.com/cloudfoundry/binary-builder/blob/master/README.md [5] https://github.com/cloudfoundry/buildpacks-ci/blob/master/scripts/build-binary.rb On Tue, Aug 11, 2015 at 10:50 AM, Lomov Alexander < alexander.lomov(a)altoros.com> wrote: I was able to solve the problem with ruby by adding --enable-load-relative
|
|
Alexander Lomov <alexander.lomov@...>
I was able to solve the problem with ruby by adding --enable-load-relative to ./configure command.
toggle quoted messageShow quoted text
Still it would be useful to know how do you build binaries for buildpacks. Thank you, Alex L.
On Aug 11, 2015, at 4:44 PM, Lomov Alexander <alexander.lomov(a)altoros.com<mailto:alexander.lomov(a)altoros.com>> wrote:
Hello, everyone. I try to create custom ruby-buildpack to support Power8. This means I need to rebuild ruby binaries. I’ve wrote some scripts that build necessary binaries and upload them to S3 [1]. Here is a script that build ruby [2]. Still after I tried to run an app I’ve got this error [3], that said “`require': cannot load such file -- rubygems.rb (LoadError)”. I think that potential problem could be in the way I build ruby binary. Could you please tell what do you use to build binaries for buildpacks? [1] https://github.com/Altoros/ruby-buildpack/tree/power/power [2] https://github.com/Altoros/ruby-buildpack/blob/power/power/scripts/ruby-2.1.5.sh [3] https://gist.github.com/allomov-altoros/4cfbd463a8bde056680d Thank you, Alex L.
|
|
Alexander Lomov <alexander.lomov@...>
Hello, everyone.
I try to create custom ruby-buildpack to support Power8. This means I need to rebuild ruby binaries. I’ve wrote some scripts that build necessary binaries and upload them to S3 [1]. Here is a script that build ruby [2]. Still after I tried to run an app I’ve got this error [3], that said “`require': cannot load such file -- rubygems.rb (LoadError)”. I think that potential problem could be in the way I build ruby binary. Could you please tell what do you use to build binaries for buildpacks? [1] https://github.com/Altoros/ruby-buildpack/tree/power/power [2] https://github.com/Altoros/ruby-buildpack/blob/power/power/scripts/ruby-2.1.5.sh [3] https://gist.github.com/allomov-altoros/4cfbd463a8bde056680d Thank you, Alex L.
|
|