Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of Hab bpm in rails plan #770

Merged
merged 1 commit into from
Jun 12, 2016
Merged

Conversation

jtimberman
Copy link
Contributor

@jtimberman jtimberman commented Jun 12, 2016

Remove use of Hab bpm and use Hab for package path.

@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @fnichol and @juliandunn to be potential reviewers

@jtimberman jtimberman closed this Jun 12, 2016
@jtimberman jtimberman deleted the jtimberman/remove-hab-bpm branch June 12, 2016 17:17
@jtimberman jtimberman restored the jtimberman/remove-hab-bpm branch June 12, 2016 17:17
@jtimberman jtimberman reopened this Jun 12, 2016
@jtimberman jtimberman changed the title Add ruby client library Remove use of Hab bpm in rails plan Jun 12, 2016
@reset
Copy link
Collaborator

reset commented Jun 12, 2016

@thesentinels r+

gif-keyboard-17354619669015011571

@thesentinels
Copy link
Contributor

📌 Commit f97cec1 has been approved by reset

@thesentinels
Copy link
Contributor

⌛ Testing commit f97cec1 with merge d6280ae...

thesentinels pushed a commit that referenced this pull request Jun 12, 2016
Signed-off-by: jtimberman <[email protected]>

Pull request: #770
Approved by: reset
@thesentinels
Copy link
Contributor

☀️ Test successful - travis

@thesentinels thesentinels merged commit f97cec1 into master Jun 12, 2016
@@ -12,8 +12,8 @@ echo "Linking database.yml"
ln -sf {{pkg.svc_config_path}}/database.yml ${RAILS_SAMPLE_DATA}/dist/config/database.yml

export GEM_HOME="${RAILS_SAMPLE_DATA}/dist/vendor/bundle/ruby/2.3.0"
export GEM_PATH="$(hab-bpm pkgpath core/ruby)/lib/ruby/gems/2.3.0:$(hab-bpm pkgpath core/bundler):$GEM_HOME"
export LD_LIBRARY_PATH="$(hab-bpm pkgpath core/gcc-libs)/lib"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather see us use templating data here, could we give this a try? You are not guaranteed to get the version of core/ruby and core/gcc-libs that you were built with--you could even get nothing back. The only sure way is via the packaging metadata we get back from the supervisor.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also not guarenteed that hab will even be on your $PATH when the hook fires--the Supervisor will ensure your package's PATH entries are on $PATH along with the Supervisor's own dependencies, but the Supervisor doesn't have a dependency on core/hab. Anyway, I'm writing this to future self too so I don't forget.

@jtimberman jtimberman deleted the jtimberman/remove-hab-bpm branch June 17, 2016 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants