Skip to content

Simplify bundler config so "bundle install" does the right thing by default #21

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

Merged
merged 1 commit into from
Oct 20, 2014
Merged

Simplify bundler config so "bundle install" does the right thing by default #21

merged 1 commit into from
Oct 20, 2014

Conversation

tianon
Copy link
Member

@tianon tianon commented Oct 18, 2014

This also makes it so that when we ONBUILD RUN bundle install it doesn't create .bundle/config in our precious, pristine application directory, and makes all the bundler-installed Gems show up in gem list.

I'm also sneaking in a change to the onbuild variants that makes bundle install just fail if you've updated your Gemfile but not your Gemfile.lock, since that bit me pretty hard while testing this (ie, bundle install was silently updating Gemfile.lock, which changes were then clobbered by the COPY . /usr/src/app and the application wouldn't run). I think this might actually be the real issue in docker-library/rails#11, too.

@tianon
Copy link
Member Author

tianon commented Oct 18, 2014

If/when this merges, I'll update rails too. 😄

@tianon
Copy link
Member Author

tianon commented Oct 18, 2014

I also wanted to do ONBUILD COPY Gemfile* *.gemspec /usr/src/app/ really, really bad, but I don't know how soon it becomes OK for us to use 1.3+ only features in our onbuild variants.

@yosifkit
Copy link
Member

LGTM

yosifkit added a commit that referenced this pull request Oct 20, 2014
Simplify bundler config so "bundle install" does the right thing by default
@yosifkit yosifkit merged commit d7fe6ad into docker-library:master Oct 20, 2014
@yosifkit yosifkit deleted the simpler-bundler branch October 20, 2014 16:16
tianon added a commit to infosiftr/stackbrew that referenced this pull request Oct 20, 2014
chrissolanilla pushed a commit to chrissolanilla/CSolanillaBio that referenced this pull request May 16, 2024
chrissolanilla pushed a commit to chrissolanilla/CSolanillaBio that referenced this pull request May 16, 2024
added current year to copyright range.  Will automatically update thanks to PHP.  fixes docker-library#21



See merge request !15
chrissolanilla pushed a commit to chrissolanilla/CSolanillaBio that referenced this pull request May 16, 2024
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.

2 participants