How to fork tutor olive learning mfe editing

How can fork the repo and add the changes like copy protection to course contents in mfe part and add the changes to repo and rebuild openedx tutor and mfe with my changes

To change the frontend-app-learning MFE, I:

  1. Fork the frontend-app-learning repo and make my changes
  2. Create a Tutor plugin that swaps the built-in learning MFE for my custom repo

The plugin looks something like this:

from tutormfe.hooks import MFE_APPS

def _add_my_mfe(mfes):
    mfes["learning"] = {
        "repository": "",
        "refs": "",
        "version": "master",
        "port": 2001,
  1. Install and enable your plugin
  2. Rebuild your MFE image by running something like:
tutor config save --set MFE_DOCKER_IMAGE=your-image-details:0.1
tutor images build mfe
tutor images push mfe

This should rebuild the MFE docker image to pull from your GitHub repo. You can then restart your Tutor services (wherever you’re running them) to use the new MFE image, and things should work.

In your image details what I can pass Do I need to give new docker image name

Yes, all you need to pass there is the Docker image name. For example, if you are using docker hub and your repo name is “rahul”, you might run:

tutor config save --set MFE_DOCKER_IMAGE=rahul/mfe:0.1

So You are saying I need a docker hub account and create a repo on that and do this changes

I’m sorry. I, probably incorrectly, assumed you were deploying to K8s. If you’re not deploying to the cloud or somewhere generally where you’ll need your Docker image stored in a registry, you might not necessarily need to push the image to a Docker hub-like registry. However, you will need to build your custom MFE image and serve it somehow, regardless of how you ultimately deploy.