Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Feature] Add support for mounting `openedx-platform`, the which is new name of `edx-platform`. Mounting by the old name, `edx-platform`, will continue to work for now as well (by @kdmccormick).
9 changes: 6 additions & 3 deletions tutor/plugins/openedx.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _mount_edx_platform_build(
Automatically add an edx-platform repo from the host to the build context whenever
it is added to the `MOUNTS` setting.
"""
if os.path.basename(path) == "edx-platform":
if os.path.basename(path) in ["edx-platform", "openedx-platform"]:
volumes += [
("openedx", "edx-platform"),
("openedx-dev", "edx-platform"),
Expand All @@ -96,7 +96,7 @@ def _mount_edx_platform_compose(
When mounting edx-platform with `tutor mounts add /path/to/edx-platform`,
bind-mount the host repo in the lms/cms containers.
"""
if name == "edx-platform":
if name in ["edx-platform", "openedx-platform"]:
path = "/openedx/edx-platform"
volumes.append(("openedx", path))
return volumes
Expand All @@ -109,7 +109,10 @@ def _mount_edx_platform_compose(
("openedx", "edx-enterprise"),
("openedx", "edx-ora2"),
("openedx", "edx-search"),
("openedx", r"openedx-.*"),
(
"openedx",
r"openedx-(?!platform)(.*)",
), # any openedx-* repo except openedx-platform
("openedx", "opaque-keys"),
("openedx", r"platform-plugin-.*"),
]
Expand Down