This repository was archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 409
invert dependencies so that backends now depend on frontends (plus some cleanup) #783
Merged
kdmccormick
merged 6 commits into
master
from
kdmccormick/service-names-and-dependencies
Aug 3, 2021
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
bc41608
docs: minor corrections to devserver-restarting docs
kdmccormick 945f72e
feat!: make frontend-app service and folder names consistent
kdmccormick d1844be
style: alphabetize service definitions and dependencies
kdmccormick 3e03cc4
refactor: pull xqueue service def into main docker-compose.yml
kdmccormick 0b5f776
feat!: invert dependencies so that backends now depend on frontends
kdmccormick 37a834e
feat: mount src/ into /edx/app/src of frontend containers (#803)
kdmccormick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,9 @@ services: | |
| - ecommerce_node_modules:/edx/app/ecommerce/ecommerce/node_modules | ||
| - ecommerce_tox:/edx/app/ecommerce/ecommerce/.tox | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/src:cached | ||
| forum: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/cs_comments_service:/edx/app/forum/cs_comments_service:cached | ||
| lms: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached | ||
|
|
@@ -33,6 +36,12 @@ services: | |
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/edx-notes-api:/edx/app/edx_notes_api/edx_notes_api:cached | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/src:cached | ||
| registrar: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/registrar:/edx/app/registrar/registrar | ||
| registrar-worker: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/registrar:/edx/app/registrar/registrar | ||
| studio: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached | ||
|
|
@@ -41,45 +50,44 @@ services: | |
| - edxapp_tox:/edx/app/edxapp/edx-platform/.tox | ||
| - edxapp_uploads:/edx/var/edxapp/uploads | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/src:cached | ||
| forum: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/cs_comments_service:/edx/app/forum/cs_comments_service:cached | ||
| registrar: | ||
|
|
||
| # Note that frontends mount `src` to /edx/app/src instead of /edx/src. | ||
| # See ADR #5 for rationale. | ||
| frontend-app-course-authoring: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/registrar:/edx/app/registrar/registrar | ||
| registrar-worker: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-course-authoring:/edx/app/frontend-app-course-authoring:cached | ||
| - frontend_app_course_authoring_node_modules:/edx/app/frontend-app-course-authoring/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-gradebook: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/registrar:/edx/app/registrar/registrar | ||
| gradebook: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-gradebook:/edx/app/frontend-app-gradebook:cached | ||
| - frontend_app_gradebook_node_modules:/edx/app/frontend-app-gradebook/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-learning: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-gradebook:/edx/app/gradebook:cached | ||
| - gradebook_node_modules:/edx/app/gradebook/node_modules | ||
| - gradebook_tox:/edx/app/gradebook/.tox | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Frontends don't use tox; the |
||
| program-console: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-learning:/edx/app/frontend-app-learning:cached | ||
| - frontend_app_learning_node_modules:/edx/app/frontend-app-learning/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-library-authoring: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-program-console:/edx/app/program-console:cached | ||
| - program_console_node_modules:/edx/app/program-console/node_modules | ||
| - program_console_tox:/edx/app/program-console/.tox | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-library-authoring:/edx/app/frontend-app-library-authoring:cached | ||
| - frontend_app_library_authoring_node_modules:/edx/app/frontend-app-library-authoring/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-payment: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-payment:/edx/app/frontend-app-payment:cached | ||
| - frontend_app_payment_node_modules:/edx/app/frontend-app-payment/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-program-console: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-program-console:/edx/app/frontend-app-program-console:cached | ||
| - frontend_app_program_console_node_modules:/edx/app/frontend-app-program-console/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
| frontend-app-publisher: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-publisher:/edx/app/frontend-app-publisher:cached | ||
| - frontend_app_publisher_node_modules:/edx/app/frontend-app-publisher/node_modules | ||
| frontend-app-learning: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-learning:/edx/app/frontend-app-learning:cached | ||
| - frontend_app_learning_node_modules:/edx/app/frontend-app-learning/node_modules | ||
| course-authoring: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-course-authoring:/edx/app/frontend-app-course-authoring:cached | ||
| - course_authoring_node_modules:/edx/app/frontend-app-course-authoring/node_modules | ||
| frontend-app-library-authoring: | ||
| volumes: | ||
| - ${DEVSTACK_WORKSPACE}/frontend-app-library-authoring:/edx/app/frontend-app-library-authoring:cached | ||
| - frontend_app_library_authoring_node_modules:/edx/app/frontend-app-library-authoring/node_modules | ||
| - ${DEVSTACK_WORKSPACE}/src:/edx/app/src:cached | ||
|
|
||
| volumes: | ||
| credentials_node_modules: | ||
|
|
@@ -88,16 +96,14 @@ volumes: | |
| edxapp_media: | ||
| edxapp_node_modules: | ||
| edxapp_uploads: | ||
| gradebook_node_modules: | ||
| program_console_node_modules: | ||
| frontend_app_payment_node_modules: | ||
| frontend_app_publisher_node_modules: | ||
| frontend_app_course_authoring_node_modules: | ||
| frontend_app_gradebook_node_modules: | ||
| frontend_app_learning_node_modules: | ||
| course_authoring_node_modules: | ||
| frontend_app_library_authoring_node_modules: | ||
| frontend_app_payment_node_modules: | ||
| frontend_app_program_console_node_modules: | ||
| frontend_app_publisher_node_modules: | ||
| credentials_tox: | ||
| discovery_tox: | ||
| ecommerce_tox: | ||
| edxapp_tox: | ||
| gradebook_tox: | ||
| program_console_tox: | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,22 +29,22 @@ services: | |
| volumes: | ||
| - registrar-sync:/edx/app/registrar/registrar:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
| gradebook: | ||
| frontend-app-course-authoring: | ||
| volumes: | ||
| - gradebook-sync:/edx/app/gradebook/gradebook:nocopy | ||
| - frontend-app-course-authoring-sync:/edx/app/frontend-app-course-authoring:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
| program-console: | ||
| frontend-app-gradebook: | ||
| volumes: | ||
| - program-console-sync:/edx/app/program-console:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
| course-authoring: | ||
| volumes: | ||
| - course-authoring-sync:/edx/app/frontend-app-course-authoring:nocopy | ||
| - frontend-app-gradebook-sync:/edx/app/frontend-app-gradebook:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
| frontend-app-library-authoring: | ||
| volumes: | ||
| - frontend-app-library-authoring-sync:/edx/app/frontend-app-library-authoring:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
| frontend-app-program-console: | ||
| volumes: | ||
| - frontend-app-program-console-sync:/edx/app/frontend-app-program-console:nocopy | ||
| - source-sync:/edx/src:nocopy | ||
|
|
||
| volumes: | ||
| credentials-sync: | ||
|
|
@@ -59,13 +59,13 @@ volumes: | |
| external: true | ||
| registrar-sync: | ||
| external: true | ||
| gradebook-sync: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, several frontends are missing from this file. I'm not going tackle that in this PR. I also doubt that anyone uses the Docker Sync stuff.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: sync and NFS are slated for removal soon, so this is even further moot. |
||
| external: true | ||
| program-console-sync: | ||
| frontend-app-course-authoring-sync: | ||
| external: true | ||
| course-authoring-sync: | ||
| frontend-app-gradebook-sync: | ||
| external: true | ||
| frontend-app-library-authoring-sync: | ||
| external: true | ||
| frontend-app-program-console-sync: | ||
| external: true | ||
| source-sync: | ||
| external: true | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These changes will require a simple Devstack restart (
make dev.down,make dev.up...). I will note this in my email.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.
After this PR merges, if a dev has the pre-changes devstack started, then pulls the latest devstack changes, then runs
make dev.down, will all containers be properly stopped?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.
Good point; they will not be stopped until Docker itself or the OS is restarted.
I will include running
make dev.downbefore git-pulling in the email I send out.