Re: Issues with offline ruby_buildpack, disconnected CF, and gems from Git
Mike Dalessio
Hi Josh,
toggle quoted messageShow quoted text
I can't reproduce what you're describing, so in order to diagnose what's going on, we'll probably need more information. Here's what I did to attempt to reproduce, so that you can compare what you're doing: - I'm pushing the app at https://github.com/cloudfoundry/ruby-buildpack/tree/master/cf_spec/fixtures/sinatra_web_app - I ran `bundle package` locally, and here's what the `vendor` directory looks like: ``` vendor/ └── bundle ├── bin │ ├── rackup │ └── tilt └── ruby └── 2.2.0 ├── bin │ ├── rackup │ └── tilt ├── build_info ├── cache │ ├── rack-1.5.2.gem │ ├── rack-protection-1.5.2.gem │ ├── sinatra-1.4.4.gem │ └── tilt-1.4.1.gem ├── doc ├── extensions ├── gems │ ├── rack-1.5.2 │ │ ├── COPYING │ │ ├── KNOWN-ISSUES │ │ ├── README.rdoc │ │ ├── Rakefile │ │ ├── SPEC ... │ ├── sinatra-1.4.4 │ │ ├── AUTHORS │ │ ├── CHANGES │ │ ├── Gemfile │ │ ├── LICENSE │ │ ├── README.de.md ... └── specifications ├── rack-1.5.2.gemspec ├── rack-protection-1.5.2.gemspec ├── sinatra-1.4.4.gemspec └── tilt-1.4.1.gemspec 70 directories, 410 files ``` - I made sure I didn't have a `.cfignore` file, which might prevent the `vendor` subdirectory from being uploaded on `cf push`. (You can read more about this lesser-known feature here: http://docs.cloudfoundry.org/devguide/deploy-apps/prepare-to-deploy.html#exclude ) - I pushed the app with ruby-buildpack v1.3.0, and amongst the log output I see: ``` -------> Buildpack version 1.3.0 -----> Compiling Ruby/Rack -----> Using Ruby version: ruby-2.0.0 -----> Installing dependencies using 1.7.12 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Using bundler 1.7.12 Installing tilt 1.4.1 Installing rack 1.5.2 Installing rack-protection 1.5.2 Installing sinatra 1.4.4 Your bundle is complete! Gems in the groups development and test were not installed. It was installed into ./vendor/bundle Bundle completed (0.54s) Cleaning up the bundler cache. ``` Note that the `bundle` command is displayed. This command does not require any network connectivity if all the gems are in your vendor directory. You can test this yourself by disconnecting your dev machine from the network and running it: ``` $ bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Using bundler 1.9.4 Installing tilt 1.4.1 Installing rack 1.5.2 Installing rack-protection 1.5.2 Installing sinatra 1.4.4 Bundle complete! 1 Gemfile dependency, 5 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into ./vendor/bundle. ``` So, what are we doing differently? -mike
On Thu, Jun 25, 2015 at 11:50 AM, Josh Ghiloni <jghiloni(a)ecsteam.com> wrote:
Hi all,
|
|