This guide describes how to set up custom ORA (Open Response Assessment) components for Sherab (WebBuddhist Course).
There are two approaches depending on the environment:
- Local development: mount the local
ora2repository. - Staging and production: create a Tutor plugin instead of using mounts.
git clone https://github.com/OpenPecha/edx-ora2.gitGo to the ora2 directory and run:
tutor mounts add ./ora2tutor config saveRebuild the images and restart the service:
tutor images build openedx --no-cache
tutor dev stop
tutor dev start -dFor staging and production, do not use mounts. Instead, create a Tutor plugin.
Create a file named sherab_ora.py and add the following content:
from tutor import hooks
hooks.Filters.ENV_PATCHES.add_items([
(
"openedx-dockerfile-post-python-requirements",
"""
RUN pip uninstall -y ora2
RUN pip install --no-cache-dir git+https://github.com/OpenPecha/edx-ora2.git@sherab-dev
"""
),
(
"openedx-dev-dockerfile-post-python-requirements",
"""
RUN pip uninstall -y ora2
RUN pip install --no-cache-dir git+https://github.com/OpenPecha/edx-ora2.git@sherab-dev
"""
)
])Note: Update the branch name (e.g.
sherab-dev) to match the target environment — usesherab-stagingfor staging orsherab-prodfor production.
tutor plugins enable sherab_oratutor images build openedx --no-cache
tutor local stop
tutor local start -dNext Step: Head back to 11-advanced-plugins-and-translations.md or continue with 13-s3-plugin-setup.md.