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

feat: auto-mount edx-platform python requirements #915

Merged
merged 1 commit into from Dec 10, 2023

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Oct 9, 2023

These changes make to possible to run:

tutor mounts add /path/to/my-xblock

The xblock directory with then be auto-magically bind-mounted in the "openedx" image at build time, and the lms*/cms* containers at run time.

This makes it effectively possible to work as a developer on edx-platform requirements.

We take the opportunity to move some openedx-specific code to a dedicated module.

Close openedx-unsupported/wg-developer-experience#177

Copy link
Collaborator

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

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

This is going to be big :) I still need to test it, but in the meantime, a few suggestions.

docs/tutorials/edx-platform.rst Show resolved Hide resolved
docs/tutorials/edx-platform.rst Show resolved Hide resolved
docs/tutorials/edx-platform.rst Outdated Show resolved Hide resolved
docs/tutorials/edx-platform.rst Show resolved Hide resolved
tutor/plugins/openedx.py Show resolved Hide resolved
tutor/hooks/catalog.py Outdated Show resolved Hide resolved
tutor/plugins/openedx.py Outdated Show resolved Hide resolved
@regisb regisb self-assigned this Oct 27, 2023
@regisb regisb force-pushed the regisb/mount-edx-platform-packages branch 2 times, most recently from 0a8e824 to 5a0d29c Compare November 20, 2023 16:03
@regisb regisb force-pushed the regisb/mount-edx-platform-packages branch from 5a0d29c to df7227d Compare November 22, 2023 11:52
@regisb regisb force-pushed the regisb/mount-edx-platform-packages branch from df7227d to 654e1c8 Compare November 30, 2023 18:00
@regisb regisb force-pushed the regisb/mount-edx-platform-packages branch 4 times, most recently from 4b6c323 to c0ff761 Compare December 10, 2023 21:46
@regisb
Copy link
Contributor Author

regisb commented Dec 10, 2023

I feel like the current implementation has now reached a decent state, and I'd like to merge this now, such that Palm users can use that feature in the future. I know it's a bit of a rush, but Quince is scheduled for tomorrow...

These changes make to possible to run:

    tutor mounts add /path/to/my-xblock

The xblock directory with then be auto-magically bind-mounted in the
"openedx" image at build time, and the lms*/cms* containers at run time.

This makes it effectively possible to work as a developer on
edx-platform requirements.

We take the opportunity to move some openedx-specific code to a
dedicated module.

Close openedx-unsupported/wg-developer-experience#177
@regisb regisb force-pushed the regisb/mount-edx-platform-packages branch from c0ff761 to 88b299e Compare December 10, 2023 21:55
@regisb regisb merged commit 0d997c9 into master Dec 10, 2023
1 check passed
@regisb regisb deleted the regisb/mount-edx-platform-packages branch December 10, 2023 21:59
@pomegranited
Copy link

Hi @regisb, this will be a great for developers, thank you!

But I tried using this on my tutor dev stack, but it doesn't seem to be mounting my requested dirs. Does this only work for tutor local?

@regisb
Copy link
Contributor Author

regisb commented Dec 14, 2023

@pomegranited what repos did you try to mount? Did the mount fail at build or run-time?

@pomegranited
Copy link

@regisb My apologies -- I re-read your updated dev docs and found my error: I missed that tutor dev uses the openedx-dev image, so that's what I need to rebuild if I want to mount edx-platform (not openedx).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Implicitly mount and install edx-platform packages
3 participants