Bug 1025676

Summary: $OPENSHIFT_DEPENDENCIES_DIR is empty after installing dependencies for ruby apps
Product: OpenShift Online Reporter: Zhe Wang <zhewang>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-01 13:14:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zhe Wang 2013-11-01 09:08:03 UTC
Description of problem:
Given a ruby app (either ruby-1.8 or ruby-1.9), after installing dependencies (successfully) for the following types of apps, its $OPENSHIFT_DEPENDENCIES_DIR is always empty. On the other hand, the dependencies are installed under $OPENSHIFT_REPO_DIR/vendor/bundle/ruby dir.

Version-Release number of selected component (if applicable):
devenv-stage_546

How reproducible:
always

Steps to Reproduce:
1. create a ruby app (either ruby-1.8 or ruby-1.9)
2. install dependencies with the following Gemfile and Gemfile.lock

<----Gemfile---->

source 'http://rubygems.org'

gem 'ref'
gem 'rack'
gem 'thread-dump'

<--------------->

<----Gemfile.lock---->

GEM
  remote: http://rubygems.org/
  specs:
    rack (1.5.2)
    ref (1.0.5)
    thread-dump (0.0.5)

PLATFORMS
  ruby

DEPENDENCIES
  rack
  ref
  thread-dump


<-------------------->


3. check if the ref gem is present under $OPENSHIFT_DEPENDENCIES_DIR

4. check the ref gem under $OPENSHIFT_REPO_DIR/vendor/bundle/ruby

Actual results:
The ref gem was installed successfully under $OPENSHIFT_REPO_DIR/vendor/bundle/ruby/1.9*/gems

But the dependency was absent under both $OPENSHIFT_DEPENDENCIES_DIR

Expected results:
The installed gems should be present under $OPENSHIFT_DEPENDENCIES_DIR.

Additional info:

Comment 1 Dan McPherson 2013-11-01 13:14:32 UTC
This is a design choice of the ruby cart.  We might make this change later.  What would be a bug is if deps were stored in some place other than repo or dependencies.  In those cases the deps wouldn't be synced from a build or to a scaled up gear.