$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

prerequisite: have edx-plaform setup w/ tutor-nightly

  • Follow instructions to install nightly tutor for edx-platform development.

    • recommend using a docker-compose override to mount your local code and venv

      • tldr steps for mounting;

        • tutor dev bindmount lms /openedx/venv

        • cp -R "$(tutor config printroot)/volumes/venv" $HOME/tutor-venvs/edx-platform

          • output can be the directory of your choosing, $HOME/tutor-venvs is just an example

        • create a docker-compose.override.yml file (mine for example)

          version: "3.7"
          services:
            lms:
              volumes:
                - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
                - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
            cms:
              volumes:
                - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
                - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
            lms-worker:
              volumes:
                - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
                - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
            cms-worker:
              volumes:
                - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
                - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv

Discovery Steps

  • To avoid issues with changing the tutor config I recommend stopping all services tutor dev stop

  • Install the nightly branch of the tutor-discovery plugin

    • git clone --branch=nightly https://github.com/overhangio/tutor-discovery.git

    • pip install -e ./tutor-discovery

    • warn: check the pip output to make sure your installed version of tutor is not modified from nightly to latest release.

  • Enable the discovery plugin tutor plugins enable discovery

  • Rebuild your tutor config tutor config save

  • Follow the same process you used for edx-plaform to mount a local venv and code

    • copy venv from container to your machine

      tutor dev bindmount discovery /openedx/venv/
    • move to a directory of your choosing. Note you can’t use to default output folder in tutor config since any service you run bindmount on will write here.

      cp -R "$(tutor config printroot)/volumes/venv" $HOME/tutor-venvs/discovery
    • override docker-compose to create a volume for your local discovery checkout and venv

    • $(tutor config printroot)/env/dev/docker-compose.override.yml

      version: "3.7"
      services:
        lms:
          volumes:
            - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
            - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
        cms:
          volumes:
            - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
            - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
        lms-worker:
          volumes:
            - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
            - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
        cms-worker:
          volumes:
            - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
            - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
        discovery:
          volumes:
            - /Users/zhancock/workspace/course-discovery/:/openedx/discovery
            - /Users/zhancock/tutor-venvs/discovery/venv:/openedx/venv

Running Cache Programs

  • make sure the lms service user has the correct permissions

    • (needs fix) init does not create a user with correct perms

      tutor dev run lms ./manage.py lms manage_user lms_catalog_service_user lms_catalog_service_user@openedx --staff --superuser --unusable-password
  • run cache_programs

    tutor dev run lms ./manage.py lms cache_programs
  • No labels