-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: Don't overwrite dep directories in docker-compose
'ed containers
#2182
Conversation
docker-compose
d containersdocker-compose
'ed containers
89af97e
to
38a39b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works on a fresh install! thanks so much
Can we make sure it works when upgrading a dependency and changing config? |
@anthonyshull changing config works the same as before - a simple I think updating a dependency will require If we would prefer |
Any dep should be fine; we want to make sure it picks up the change. |
I have a few other ideas for how to speed this up more, but those can be follow-up tasks. |
…uild step, and update the README
9e7499f
to
fff1f56
Compare
@thecristen in case it affects your approval, I added another commit |
Sounds good to me @joshlarson ! 👍🏼 |
Summary of changes
By mounting
..
into/app
, we were overwriting thedeps/
directory in the containers with whatever was in the repository when runningdocker-compose
. That means that the results from the build steps in the dockerfiles were being overwritten. A particularly annoying effect is that if you rundocker-compose -f deploy/dev.yml up
on a fresh clone, then even though the build step does fetch and build dependencies,/app/deps
is missing, and the app doesn't start.This fixes that by explicitly re-mounting the image's
/app/deps
folder into the container, regardless of what's in..:/app
General checks
New UI, or substantial UI changes
New endpoints, or non-trivial changes to current endpoints