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

Restart driver-app service only after we have the new image #705

Merged
merged 2 commits into from
Sep 7, 2018

Conversation

pcaisse
Copy link
Contributor

@pcaisse pcaisse commented Sep 6, 2018

Overview

This changes provisioning so that instead of restarting the service
after all the tasks have run via the handler, we now do so explicitly in
a dedicated task after we pull/build the new image and before we use
the app container.

Previously, we were running into issues where we would run migrations
against the previous version of the container.

Checklist

  • PR has a descriptive enough title to be useful in changelogs

Testing Instructions

To reproduce the issue on develop:

  • Add a Python dependency to app/requirements.txt (eg. itsdangerous==0.24)
  • vagrant provision app
  • vagrant ssh app
  • sudo docker exec -it driver-app bash
  • pip freeze | grep its (returns nothing)

Now git stash, check out this branch, git stash pop to add your new dep back in and repeat the steps. You should see that the new dependency is now listed.

This changes provisioning so that instead of restarting the service
after all the tasks have run via the handler, we now do so explicitly in
a dedicated task _after_ we pull/build the new image and _before_ we use
the app container.

Previously, we were running into issues where we would run migrations
against the previous version of the container.
Copy link
Contributor

@ddohler ddohler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works well for the driver-app container but it would be good to apply the same fix to the Celery container also. If I vagrant ssh celery and then sudo docker exec -ti driver-celery bash, I'm not able to import itsdangerous even if it works in the driver-app container.

@pcaisse pcaisse merged commit 9c3dccf into develop Sep 7, 2018
@pcaisse pcaisse deleted the feature/fix-provisioning branch September 7, 2018 23:07
pcaisse added a commit that referenced this pull request Oct 12, 2018
…ning

Restart driver-app service only after we have the new image
pcaisse added a commit that referenced this pull request Oct 12, 2018
…ning

Restart driver-app service only after we have the new image
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