degica / kaiser

Commandline Gem that allows you to work with web apps better
https://tech.degica.com/kaiser/
MIT License
12 stars 1 forks source link

Cache gems across containers w/ docker volumes #33

Closed Resonious closed 4 years ago

Resonious commented 4 years ago

I've been making some tweaks to Kaiser over the past couple months to try and speed up my workflow. This is one of those tweaks, alongside #31, #32, #34, and #35.

Right now most Kaiser Dockerfiles run bundle install during build, so this change isn't super useful, but it still lets you share gems across projects (that are on the same Ruby version). Currently I use #32 to avoid bundle installing when building hats and it speeds things up a lot.

degicat commented 4 years ago

@rramsden please review this

rramsden commented 4 years ago

@Resonious @davidsiaw We're not sure how to handle this gracefully yet. One idea is including these cache directories inside hats Kaiserfile/Dockerfile. Closing this for now.