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

What to do when you have new code to deploy for your Rails container #5

Closed
mech opened this issue Feb 21, 2015 · 2 comments
Closed

Comments

@mech
Copy link

mech commented Feb 21, 2015

I saw your Dockerfile with bundle install, I am wondering what do you do when there is new code update. Previously Capistrano can be used to deploy app, but with Dockerfile, do you mean I have to build it every time there is new code update?

@seapy
Copy link
Owner

seapy commented Feb 21, 2015

When your code is update, rebuild docker image.
it's docker way and immutable infrastructure.

but docker use layered file system, so almost of build use cache. when your Gemfile is not updated, bundle install is not rerun and use cache. check https://docs.docker.com/articles/dockerfile_best-practices/#build-cache

@seapy seapy closed this as completed Feb 21, 2015
@mech
Copy link
Author

mech commented Feb 21, 2015

Oooo.. makes sense, tks!

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

No branches or pull requests

2 participants