Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These instructions are based on using docker-compose overrides and copying/mounting the entire venv folder. This is no longer the simplest approach.

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

...

  • Plugin scripts are run in a separate job container so we’ll need to mount volumes for these as well

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

    Code Block
    languageyaml
    version: "3.7"
    services:
      discovery-job:
        volumes:
          - /Users/zhancock/workspace/course-discovery/:/openedx/discovery
          - /Users/zhancock/tutor-venvs/discovery/venv:/openedx/venv
      lms-job:
        volumes:
          - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
          - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
      cms-job:
        volumes:
          - /Users/zhancock/workspace/edx-platform/:/openedx/edx-platform
          - /Users/zhancock/tutor-venvs/edx-platform/venv:/openedx/venv
  • Install requirements based on local checkout

    Code Block
    tutor dev run discovery make requirements
  • (needs fix) change the partner code in the discovery plugin init script to ‘dev’

  • Run setup. This will handle database access, migrations, DOT application setup, sync courses etc

    Code Block
    tutor dev init -l discovery
  • Create a superuser to gain access to Django admin

    Code Block
    tutor dev run discovery ./manage.py createsuperuser
  • (needs fix) Disable production site configuration

...