Docker challenges — How to install gems? #187
Replies: 2 comments 3 replies
-
|
Oh, actually, while discussing docker compose I once had the issue where I killed the process and restarted it and I got the error I remember that one of our contributors got this issue once as well. In order to fix it I needed to do |
Beta Was this translation helpful? Give feedback.
-
|
Running Any command you run with Adding it to the entrypoint will cause bundle to install gems at every boot up, which isn't really necessary and it'll slow down boot times considerably. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @robacarp, in my branch I needed to install a new gem. I couldn't quite figure out how to do this with the docker setup. I tried running
docker compose run base bundle installand within that particular process it clearly installed the gem, but I tried restarting the maindocker compose upand it was missing the gem in that process.Then I tried modifying the
docker-entrypointto addbundle installright above the db:prepare, and I also had the idea to re-rundocker compose build. One of those two things fixed it, but I'm not sure which one. :)Was my mistake simply that I needed to go straight to
docker compose build? Does that install gems?Or do I actually need to commit my change to the docker-entrypoint and from now on we just kill the
upprocess and restart it to install gems?Beta Was this translation helpful? Give feedback.
All reactions