Bug 1025676 - $OPENSHIFT_DEPENDENCIES_DIR is empty after installing dependencies for ruby apps
Summary: $OPENSHIFT_DEPENDENCIES_DIR is empty after installing dependencies for ruby apps
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-01 09:08 UTC by Zhe Wang
Modified: 2015-05-14 23:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-01 13:14:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.