OpenEDX – разворачивание системы online курсов

Устанавливаем docker и docker-compose:

# docker -v
Docker version 20.10.17, build 100c701
# docker-compose -v
docker-compose version 1.26.0, build d4451659
# yum install python3-pip
# python3 -V
Python 3.6.8

Open edX от Tutor требует для правильной работы как минимум четырёх записей DNS, основного и трёх поддоменов.

  1. openedu.yourdomain.com (или yourdomain.com): Это основной домен
  2. preview.openedu.yourdomain.com: Судомен для предварительного просмотра страницы или курса перед публикацией
  3. studio.openedu.yourdomain.com: Поддомен для разработки курса
  4. apps.openedu.yourdomain.com

Разворачиваем openedx:
https://docs.tutor.overhang.io/install.html

# yum install git
# git clone https://github.com/overhangio/tutor
# cd tutor
# pip3 install -e .
# pip3 install tutor-mfe
# /usr/local/bin/./tutor plugins enable mfe
# /usr/local/bin/./tutor config save
# /usr/local/bin/./tutor plugins list
mfe 14.0.0
# /usr/local/bin/./tutor local quickstart

Добавляем админ пользователя

# /usr/local/bin/./tutor local createuser --staff --superuser user user@gmail.com

⚠️ Failed to enable plugin 'mfe': plugin 'mfe' is not installed.
==================================================
Interactive platform configuration
==================================================
Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [Y/n] y
Your website domain name for students (LMS) [www.myopenedx.com] openedu.tst-amo.net.ua
Your website domain name for teachers (CMS) [studio.openedu.tst-amo.net.ua]
Your platform name/title [My Open edX] My Open Ring
Your public contact email address [contact@tst-amo.net.ua] user@gmail.com
The default language code for the platform [en]
Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [y/N] y
Configuration saved to /home/user/.local/share/tutor/config.yml
Environment generated in /home/user/.local/share/tutor/env
==============================================

https://openedu.tst-amo.net.ua
https://studio.openedu.tst-amo.net.ua

Инсталлируем DEMO курс

# /usr/local/bin/./tutor local importdemocourse

Если нужно изменить порты (как в моем случае, так как на сервере живет nginx, соответственно порт 443 занят им), настройки находятся по адресу:

# /home/user/tutor/tutor/templates/local/docker-compose.prod.yml

меняем значение 443:443 на, например, 8443:443

ports:
- "{{ CADDY_HTTP_PORT }}:80"
{% if ENABLE_HTTPS and ENABLE_WEB_PROXY %}- "8443:443"{% endif %}
environment:

Также нужно открыть новые порты на сервере (у меня Linux) и пробросить на шлюзе (Mikrotik).

Теперь зайти на платформу можно по адресу:

https://openedu.tst-amo.net.ua:8443/
https://studio.openedu.tst-amo.net.ua:8443/

 

 

STUDIO Create Course
https://www.edx.org/course/studiox-creating-a-course-with-edx-studio

MANUAL Create
https://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/set_up_course/studio_add_course_information/creating_new_course.html

https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/dogwood/front_matter/preface.html

Install edX
https://learn.edtech.ektu.kz/ru/open-edx/install-open-edx-from-tutor

Install Amazon edX
https://blog.lawrencemcdaniel.com/tutor-1-click-installer-open-edx-installation-guide/

Описание процеса создания курса
https://pandia.ru/text/80/110/18993.php

 

image_pdfimage_print

Leave a Reply

Your email address will not be published. Required fields are marked *