6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-04 19:03:39 +00:00

feat: upgrade to olive

This commit is contained in:
Régis Behmo 2022-11-22 13:53:29 +01:00
parent 5ef246479b
commit c26999ec65
32 changed files with 173 additions and 186 deletions

View File

@ -20,6 +20,29 @@ instructions, because git commits are used to generate release notes:
<!-- scriv-insert-here --> <!-- scriv-insert-here -->
<a id='changelog-15.0.0'></a>
## v15.0.0 (2022-12-06)
- 💥[Feature] Upgrade to Olive (by @regisb):
- Mypy type checking options were modified: developers are encouraged to add the `--implicit-reexport` option to their IDE.
- [Bugfix] Update problem templates according newer python versions. (by @mariajgrimaldi)
- [Improvement] Add the `-h` help option to all commands and subcommands. Previously, we could only use `--help`, which is quite long for lazy fingers. (by @regisb)
- 💥[Feature] Add an extensible `local/dev/k8s do ...` command to trigger custom job commands. These commands are used to run a series of bash scripts in designated containers. Any plugin can add custom jobs thanks to the `CLI_DO_COMMANDS` filter. This causes the following breaking changes:
- The "init", "createuser", "settheme", "importdemocourse" commands were all migrated to this new interface. For instance, `tutor local init` was replaced by `tutor local do init`.
- Plugin developers are encouraged to replace calls to the `COMMANDS_INIT` and `COMMANDS_PRE_INIT` filters by `CLI_DO_INIT_TASKS`.
- [Feature] Implement hook filter priorities, which work like action priorities. (by @regisb)
- 💥[Improvement] Remove the `local/dev bindmount` commands, which have been marked as deprecated for some time. The `--mount` option should be used instead.
- 💥[Bugfix] Fix local installation requirements. Plugins that implemented the "openedx-dockerfile-post-python-requirements" patch and that needed access to the edx-platform repo will no longer work. Instead, these plugins should implement the "openedx-dockerfile-pre-assets" patch. This scenario should be very rare, though. (by @regisb)
- 💥[Improvement] Rename the implementation of tutor <mode> quickstart to tutor <mode> launch. (by @Carlos-Muniz)
- 💥[Improvement] Remove the implementation of tutor dev runserver. (by @Carlos-Muniz)
- [Bugfix] Fix MongoDB replica set connection error resulting from edx-platform's pymongo (3.10.1 -> 3.12.3) upgrade ([edx-platform#30569](https://github.com/openedx/edx-platform/pull/30569)). (by @ormsbee)
- [Improvement] For Tutor Nightly (and only Nightly), official plugins are now installed from their nightly branches on GitHub instead of a version range on PyPI. This will allow Nightly users to install all official plugins by running ``pip install -e ".[full]"``.
- [Bugfix] Remove edX references from bulk emails ([issue](https://github.com/openedx/build-test-release-wg/issues/100)).
- [Bugfix] Update ``celery`` invocations for lms-worker and cms-worker to be compatible with Celery 5 CLI.
- [Improvement] Point CMS at its config file using ``CMS_CFG`` environment variable instead of deprecated ``STUDIO_CFG``.
- [Bugfix] Start MongoDB when running migrations, because a new data migration fails if MongoDB is not running.
<a id='changelog-14.2.3'></a> <a id='changelog-14.2.3'></a>
## v14.2.3 (2022-12-06) ## v14.2.3 (2022-12-06)

View File

@ -55,13 +55,12 @@ Features
* No technical skill required with the `zero-click Tutor AWS image <https://docs.tutor.overhang.io/install.html#zero-click-aws-installation>`__ * No technical skill required with the `zero-click Tutor AWS image <https://docs.tutor.overhang.io/install.html#zero-click-aws-installation>`__
.. _readme_intro_end: .. _readme_intro_end:
..
TODO: replace image + alt with tutor local launch
.. image:: ./docs/img/quickstart.gif
:alt: Tutor local quickstart
:target: https://terminalizer.com/view/91b0bfdd557
Launch .. image:: ./docs/img/launch.webp
:alt: Tutor local launch
:target: https://www.terminalizer.com/view/3a8d55835686
Quickstart
---------- ----------
1. Install the `latest stable release <https://github.com/overhangio/tutor/releases>`_ of Tutor 1. Install the `latest stable release <https://github.com/overhangio/tutor/releases>`_ of Tutor
@ -71,7 +70,8 @@ Launch
Documentation Documentation
------------- -------------
Extensive documentation is available online: https://docs.tutor.overhang.io/ Extensive documentation is available: https://docs.tutor.overhang.io/
Extensive documentation is available: https://docs.tutor.overhang.io/
Is there a problem? Is there a problem?
------------------- -------------------

View File

@ -1,15 +0,0 @@
- [Improvement] Add the `-h` help option to all commands and subcommands. Previously, we could only use `--help`, which is quite long for lazy fingers. (by @regisb)
- 💥[Feature] Add an extensible `local/dev/k8s do ...` command to trigger custom job commands. These commands are used to run a series of bash scripts in designated containers. Any plugin can add custom jobs thanks to the `CLI_DO_COMMANDS` filter. This causes the following breaking changes:
- The "init", "createuser", "settheme", "importdemocourse" commands were all migrated to this new interface. For instance, `tutor local init` was replaced by `tutor local do init`.
- Plugin developers are encouraged to replace calls to the `COMMANDS_INIT` and `COMMANDS_PRE_INIT` filters by `CLI_DO_INIT_TASKS`.
- [Feature] Implement hook filter priorities, which work like action priorities. (by @regisb)
- 💥[Improvement] Remove the `local/dev bindmount` commands, which have been marked as deprecated for some time. The `--mount` option should be used instead.
- 💥[Bugfix] Fix local installation requirements. Plugins that implemented the "openedx-dockerfile-post-python-requirements" patch and that needed access to the edx-platform repo will no longer work. Instead, these plugins should implement the "openedx-dockerfile-pre-assets" patch. This scenario should be very rare, though. (by @regisb)
- 💥[Improvement] Rename the implementation of tutor <mode> quickstart to tutor <mode> launch. (by @Carlos-Muniz)
- 💥[Improvement] Remove the implementation of tutor dev runserver. (by @Carlos-Muniz)
- [Bugfix] Fix MongoDB replica set connection error resulting from edx-platform's pymongo (3.10.1 -> 3.12.3) upgrade ([edx-platform#30569](https://github.com/openedx/edx-platform/pull/30569)). (by @ormsbee)
- [Improvement] For Tutor Nightly (and only Nightly), official plugins are now installed from their nightly branches on GitHub instead of a version range on PyPI. This will allow Nightly users to install all official plugins by running ``pip install -e ".[full]"``.
- [Bugfix] Remove edX references from bulk emails ([issue](https://github.com/openedx/build-test-release-wg/issues/100)).
- [Bugfix] Update ``celery`` invocations for lms-worker and cms-worker to be compatible with Celery 5 CLI.
- [Improvement] Point CMS at its config file using ``CMS_CFG`` environment variable instead of deprecated ``STUDIO_CFG``.
- [Bugfix] Start MongoDB when running migrations, because a new data migration fails if MongoDB is not running

View File

@ -130,7 +130,7 @@ Open edX customisation
This defines the git repository from which you install Open edX platform code. If you run an Open edX fork with custom patches, set this to your own git repository. You may also override this configuration parameter at build time, by providing a ``--build-arg`` option. This defines the git repository from which you install Open edX platform code. If you run an Open edX fork with custom patches, set this to your own git repository. You may also override this configuration parameter at build time, by providing a ``--build-arg`` option.
- ``OPENEDX_COMMON_VERSION`` (default: ``"open-release/nutmeg.1"``) - ``OPENEDX_COMMON_VERSION`` (default: ``"open-release/olive.1"``)
This defines the default version that will be pulled from all Open edX git repositories. This defines the default version that will be pulled from all Open edX git repositories.
@ -150,7 +150,7 @@ These two configuration parameters define which Redis database to use for Open e
.. _openedx_extra_pip_requirements: .. _openedx_extra_pip_requirements:
- ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` (default: ``openedx-scorm-xblock<13.0.0,>=12.0.0``) - ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` (default: ``openedx-scorm-xblock>=15.0.0,<16.0.0``)
This defines extra pip packages that are going to be installed for Open edX. This defines extra pip packages that are going to be installed for Open edX.
@ -170,10 +170,6 @@ This configuration parameter sets the Django setting ``AWS_SECRET_ACCESS_KEY`` i
This configuration parameter sets the name of the MySQL Database to be used by the Open edX Instance. This configuration parameter sets the name of the MySQL Database to be used by the Open edX Instance.
- ``OPENEDX_CSMH_MYSQL_DATABASE`` (default: ``"{{ OPENEDX_MYSQL_DATABASE }}_csmh"``)
This configuration parameter allows you to configure the name of the separate Courseware Student-Module History (CSMH) database.
- ``OPENEDX_MYSQL_USERNAME`` (default: ``"openedx"``) - ``OPENEDX_MYSQL_USERNAME`` (default: ``"openedx"``)
This configuration parameter sets the username associated with the MySQL Database. This configuration parameter sets the username associated with the MySQL Database.
@ -408,14 +404,14 @@ If you don't create your fork from this tag, you *will* have important compatibi
- Do not try to run a fork from an older (pre-Nutmeg) version of edx-platform: this will simply not work. - Do not try to run a fork from an older (pre-Nutmeg) version of edx-platform: this will simply not work.
- Do not try to run a fork from the edx-platform master branch: there is a 99% probability that it will fail. - Do not try to run a fork from the edx-platform master branch: there is a 99% probability that it will fail.
- Do not try to run a fork from the open-release/nutmeg.master branch: Tutor will attempt to apply security and bug fix patches that might already be included in the open-release/nutmeg.master but which were not yet applied to the latest release tag. Patch application will thus fail if you base your fork from the open-release/nutmeg.master branch. - Do not try to run a fork from the open-release/olive.master branch: Tutor will attempt to apply security and bug fix patches that might already be included in the open-release/olive.master but which were not yet applied to the latest release tag. Patch application will thus fail if you base your fork from the open-release/olive.master branch.
.. _i18n: .. _i18n:
Adding custom translations Adding custom translations
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
If you are not running Open edX in English (``LANGUAGE_CODE`` default: ``"en"``), chances are that some strings will not be properly translated. In most cases, this is because not enough contributors have helped translate Open edX into your language. It happens! With Tutor, available translated languages include those that come bundled with `edx-platform <https://github.com/openedx/edx-platform/tree/open-release/nutmeg.master/conf/locale>`__ as well as those from `openedx-i18n <https://github.com/openedx/openedx-i18n/tree/master/edx-platform/locale>`__. If you are not running Open edX in English (``LANGUAGE_CODE`` default: ``"en"``), chances are that some strings will not be properly translated. In most cases, this is because not enough contributors have helped translate Open edX into your language. It happens! With Tutor, available translated languages include those that come bundled with `edx-platform <https://github.com/openedx/edx-platform/tree/open-release/olive.master/conf/locale>`__ as well as those from `openedx-i18n <https://github.com/openedx/openedx-i18n/tree/master/edx-platform/locale>`__.
Tutor offers a relatively simple mechanism to add custom translations to the openedx Docker image. You should create a folder that corresponds to your language code in the "build/openedx/locale" folder of the Tutor environment. This folder should contain a "LC_MESSAGES" folder. For instance:: Tutor offers a relatively simple mechanism to add custom translations to the openedx Docker image. You should create a folder that corresponds to your language code in the "build/openedx/locale" folder of the Tutor environment. This folder should contain a "LC_MESSAGES" folder. For instance::
@ -436,9 +432,9 @@ Then, add a "django.po" file there that will contain your custom translations::
.. warning:: .. warning::
Don't forget to specify the file ``Content-Type`` when adding message strings with non-ASCII characters; otherwise a ``UnicodeDecodeError`` will be raised during compilation. Don't forget to specify the file ``Content-Type`` when adding message strings with non-ASCII characters; otherwise a ``UnicodeDecodeError`` will be raised during compilation.
The "String to translate" part should match *exactly* the string that you would like to translate. You cannot make it up! The best way to find this string is to copy-paste it from the `upstream django.po file for the English language <https://github.com/openedx/edx-platform/blob/open-release/nutmeg.master/conf/locale/en/LC_MESSAGES/django.po>`__. The "String to translate" part should match *exactly* the string that you would like to translate. You cannot make it up! The best way to find this string is to copy-paste it from the `upstream django.po file for the English language <https://github.com/openedx/edx-platform/blob/open-release/olive.master/conf/locale/en/LC_MESSAGES/django.po>`__.
If you cannot find the string to translate in this file, then it means that you are trying to translate a string that is used in some piece of javascript code. Those strings are stored in a different file named "djangojs.po". You can check it out `in the edx-platform repo as well <https://github.com/openedx/edx-platform/blob/open-release/nutmeg.master/conf/locale/en/LC_MESSAGES/djangojs.po>`__. Your custom javascript strings should also be stored in a "djangojs.po" file that should be placed in the same directory. If you cannot find the string to translate in this file, then it means that you are trying to translate a string that is used in some piece of javascript code. Those strings are stored in a different file named "djangojs.po". You can check it out `in the edx-platform repo as well <https://github.com/openedx/edx-platform/blob/open-release/olive.master/conf/locale/en/LC_MESSAGES/djangojs.po>`__. Your custom javascript strings should also be stored in a "djangojs.po" file that should be placed in the same directory.
To recap, here is an example. To translate a few strings in French, both from django.po and djangojs.po, we would have the following file hierarchy:: To recap, here is an example. To translate a few strings in French, both from django.po and djangojs.po, we would have the following file hierarchy::

View File

@ -92,7 +92,7 @@ The ``openedx-dev`` Docker image is based on the same ``openedx`` image used by
- Additional Python and system requirements are installed for convenient debugging: `ipython <https://ipython.org/>`__, `ipdb <https://pypi.org/project/ipdb/>`__, vim, telnet. - Additional Python and system requirements are installed for convenient debugging: `ipython <https://ipython.org/>`__, `ipdb <https://pypi.org/project/ipdb/>`__, vim, telnet.
- The edx-platform `development requirements <https://github.com/openedx/edx-platform/blob/open-release/nutmeg.master/requirements/edx/development.in>`__ are installed. - The edx-platform `development requirements <https://github.com/openedx/edx-platform/blob/open-release/olive.master/requirements/edx/development.in>`__ are installed.
If you are using a custom ``openedx`` image, then you will need to rebuild ``openedx-dev`` every time you modify ``openedx``. To so, run:: If you are using a custom ``openedx`` image, then you will need to rebuild ``openedx-dev`` every time you modify ``openedx``. To so, run::

View File

@ -38,7 +38,7 @@ The `devstack <https://github.com/openedx/devstack>`_ is meant for development o
Is Tutor officially supported by edX? Is Tutor officially supported by edX?
------------------------------------- -------------------------------------
Yes: as of the Open edX Maple release (December 9th 2021), Tutor is the only officially supported installation method for Open edX: see the `official installation instructions <https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-nutmeg.master/installation/index.html>`__. Yes: as of the Open edX Maple release (December 9th 2021), Tutor is the only officially supported installation method for Open edX: see the `official installation instructions <https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-olive.master/installation/index.html>`__.
What features are missing from Tutor? What features are missing from Tutor?
------------------------------------- -------------------------------------

View File

@ -8,5 +8,5 @@ Getting started
install install
intro intro
quickstart quickstart
whatnext whatnext

BIN
docs/img/launch.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 MiB

View File

@ -1,11 +1,10 @@
.. include:: ../README.rst .. include:: ../README.rst
:start-after: _readme_intro_start: :start-after: _readme_intro_start:
:end-before: _readme_intro_end: :end-before: _readme_intro_end:
..
TODO replace quickstart.gif + alt with 'launch' .. image:: ./img/launch.webp
.. image:: ./img/quickstart.gif :alt: Tutor local launch
:alt: Tutor local quickstart :target: https://www.terminalizer.com/view/3a8d55835686
:target: https://terminalizer.com/view/91b0bfdd557
---------------------------------- ----------------------------------

View File

@ -85,7 +85,7 @@ The other benefit of ``kubectl apply`` is that it allows you to customise the Ku
To learn more about "kustomizations", refer to the `official documentation <https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/>`__. To learn more about "kustomizations", refer to the `official documentation <https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/>`__.
Launch Quickstart
---------- ----------
Launch the platform on Kubernetes in one command:: Launch the platform on Kubernetes in one command::

View File

@ -17,9 +17,6 @@ In the following, environment and data files will be generated in a user-specifi
export TUTOR_ROOT=/path/to/tutorroot export TUTOR_ROOT=/path/to/tutorroot
tutor run ... tutor run ...
.. note::
As of v10.0.0, a locally-running Open edX platform can no longer be accessed from http://localhost or http://studio.localhost. Instead, when running ``tutor local launch``, you must now decide whether you are running a platform that will be used in production. If not, the platform will be automatically be bound to http://local.overhang.io and http://studio.local.overhang.io, which are domain names that point to 127.0.0.1 (localhost). This change was made to facilitate internal communication between Docker containers.
Main commands Main commands
------------- -------------

View File

@ -1,4 +1,4 @@
.. _launch: .. _quickstart:
Quickstart (1-click install) Quickstart (1-click install)
---------------------------- ----------------------------
@ -22,7 +22,7 @@ Yes :) This is what happens when you run ``tutor local launch``:
2. Configuration files are generated from templates. 2. Configuration files are generated from templates.
3. Docker images are downloaded. 3. Docker images are downloaded.
4. Docker containers are provisioned. 4. Docker containers are provisioned.
5. A full, production-ready Open edX platform (`Nutmeg <https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-nutmeg.master/platform_releases/nutmeg.html>`__ release) is run with docker-compose. 5. A full, production-ready Open edX platform (`Nutmeg <https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-olive.master/platform_releases/olive.html>`__ release) is run with docker-compose.
The whole procedure should require less than 10 minutes, on a server with good bandwidth. Note that your host environment will not be affected in any way, since everything runs inside docker containers. Root access is not even necessary. The whole procedure should require less than 10 minutes, on a server with good bandwidth. Note that your host environment will not be affected in any way, since everything runs inside docker containers. Root access is not even necessary.

View File

@ -3,7 +3,7 @@
What next? What next?
========== ==========
You have gone through the :ref:`Launch installation <launch>`: at this point, you should have a running Open edX platform. If you don't, please follow the instructions from the :ref:`Troubleshooting <troubleshooting>` section. You have gone through the :ref:`Quickstart installation <quickstart>`: at this point, you should have a running Open edX platform. If you don't, please follow the instructions from the :ref:`Troubleshooting <troubleshooting>` section.
Logging-in as administrator Logging-in as administrator
--------------------------- ---------------------------

View File

@ -4,4 +4,4 @@ mypy
pycryptodome pycryptodome
jinja2>=2.10 jinja2>=2.10
kubernetes kubernetes
pyyaml>=4.2b1 pyyaml>=6.0

View File

@ -1,5 +1,5 @@
# #
# This file is autogenerated by pip-compile with python 3.8 # This file is autogenerated by pip-compile with python 3.10
# To update, run: # To update, run:
# #
# pip-compile requirements/base.in # pip-compile requirements/base.in
@ -8,7 +8,7 @@ appdirs==1.4.4
# via -r requirements/base.in # via -r requirements/base.in
cachetools==5.2.0 cachetools==5.2.0
# via google-auth # via google-auth
certifi==2022.9.24 certifi==2022.12.7
# via # via
# kubernetes # kubernetes
# requests # requests
@ -16,7 +16,7 @@ charset-normalizer==2.1.1
# via requests # via requests
click==8.1.3 click==8.1.3
# via -r requirements/base.in # via -r requirements/base.in
google-auth==2.14.1 google-auth==2.15.0
# via kubernetes # via kubernetes
idna==3.4 idna==3.4
# via requests # via requests
@ -38,7 +38,7 @@ pyasn1==0.4.8
# rsa # rsa
pyasn1-modules==0.2.8 pyasn1-modules==0.2.8
# via google-auth # via google-auth
pycryptodome==3.15.0 pycryptodome==3.16.0
# via -r requirements/base.in # via -r requirements/base.in
python-dateutil==2.8.2 python-dateutil==2.8.2
# via kubernetes # via kubernetes
@ -63,7 +63,7 @@ tomli==2.0.1
# via mypy # via mypy
typing-extensions==4.4.0 typing-extensions==4.4.0
# via mypy # via mypy
urllib3==1.26.12 urllib3==1.26.13
# via # via
# kubernetes # kubernetes
# requests # requests

View File

@ -1,5 +1,5 @@
# #
# This file is autogenerated by pip-compile with python 3.8 # This file is autogenerated by pip-compile with python 3.10
# To update, run: # To update, run:
# #
# pip-compile requirements/dev.in # pip-compile requirements/dev.in
@ -22,7 +22,7 @@ cachetools==5.2.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# google-auth # google-auth
certifi==2022.9.24 certifi==2022.12.7
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -46,7 +46,7 @@ commonmark==0.9.1
# via rich # via rich
coverage==6.5.0 coverage==6.5.0
# via -r requirements/dev.in # via -r requirements/dev.in
cryptography==38.0.3 cryptography==38.0.4
# via secretstorage # via secretstorage
dill==0.3.6 dill==0.3.6
# via pylint # via pylint
@ -54,7 +54,7 @@ docutils==0.17.1
# via # via
# -r requirements/dev.in # -r requirements/dev.in
# readme-renderer # readme-renderer
google-auth==2.14.1 google-auth==2.15.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -62,7 +62,7 @@ idna==3.4
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# requests # requests
importlib-metadata==5.0.0 importlib-metadata==5.1.0
# via # via
# keyring # keyring
# twine # twine
@ -103,17 +103,17 @@ oauthlib==3.2.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# requests-oauthlib # requests-oauthlib
packaging==21.3 packaging==22.0
# via build # via build
pathspec==0.10.2 pathspec==0.10.2
# via black # via black
pep517==0.13.0 pep517==0.13.0
# via build # via build
pip-tools==6.10.0 pip-tools==6.11.0
# via -r requirements/dev.in # via -r requirements/dev.in
pkginfo==1.8.3 pkginfo==1.9.2
# via twine # via twine
platformdirs==2.5.4 platformdirs==2.6.0
# via # via
# black # black
# pylint # pylint
@ -128,20 +128,18 @@ pyasn1-modules==0.2.8
# google-auth # google-auth
pycparser==2.21 pycparser==2.21
# via cffi # via cffi
pycryptodome==3.15.0 pycryptodome==3.16.0
# via -r requirements/base.txt # via -r requirements/base.txt
pygments==2.13.0 pygments==2.13.0
# via # via
# readme-renderer # readme-renderer
# rich # rich
pyinstaller==5.6.2 pyinstaller==5.7.0
# via -r requirements/dev.in # via -r requirements/dev.in
pyinstaller-hooks-contrib==2022.13 pyinstaller-hooks-contrib==2022.14
# via pyinstaller # via pyinstaller
pylint==2.15.6 pylint==2.15.8
# via -r requirements/dev.in # via -r requirements/dev.in
pyparsing==3.0.9
# via packaging
python-dateutil==2.8.2 python-dateutil==2.8.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
@ -174,7 +172,7 @@ rsa==4.9
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# google-auth # google-auth
scriv==0.17.0 scriv==1.0.0
# via -r requirements/dev.in # via -r requirements/dev.in
secretstorage==3.3.3 secretstorage==3.3.3
# via keyring # via keyring
@ -195,23 +193,19 @@ tomli==2.0.1
# pylint # pylint
tomlkit==0.11.6 tomlkit==0.11.6
# via pylint # via pylint
twine==4.0.1 twine==4.0.2
# via -r requirements/dev.in # via -r requirements/dev.in
types-docutils==0.19.1.1 types-docutils==0.19.1.1
# via -r requirements/dev.in # via -r requirements/dev.in
types-pyyaml==6.0.12.2 types-pyyaml==6.0.12.2
# via -r requirements/dev.in # via -r requirements/dev.in
types-setuptools==65.6.0.0 types-setuptools==65.6.0.2
# via -r requirements/dev.in # via -r requirements/dev.in
typing-extensions==4.4.0 typing-extensions==4.4.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# astroid
# black
# mypy # mypy
# pylint urllib3==1.26.13
# rich
urllib3==1.26.12
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -227,7 +221,7 @@ wheel==0.38.4
# via pip-tools # via pip-tools
wrapt==1.14.1 wrapt==1.14.1
# via astroid # via astroid
zipp==3.10.0 zipp==3.11.0
# via importlib-metadata # via importlib-metadata
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:

View File

@ -1,5 +1,5 @@
# #
# This file is autogenerated by pip-compile with python 3.8 # This file is autogenerated by pip-compile with python 3.10
# To update, run: # To update, run:
# #
# pip-compile requirements/docs.in # pip-compile requirements/docs.in
@ -14,7 +14,7 @@ cachetools==5.2.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# google-auth # google-auth
certifi==2022.9.24 certifi==2022.12.7
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -32,7 +32,7 @@ docutils==0.17.1
# sphinx # sphinx
# sphinx-click # sphinx-click
# sphinx-rtd-theme # sphinx-rtd-theme
google-auth==2.14.1 google-auth==2.15.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -42,8 +42,6 @@ idna==3.4
# requests # requests
imagesize==1.4.1 imagesize==1.4.1
# via sphinx # via sphinx
importlib-metadata==5.0.0
# via sphinx
jinja2==3.1.2 jinja2==3.1.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
@ -64,7 +62,7 @@ oauthlib==3.2.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# requests-oauthlib # requests-oauthlib
packaging==21.3 packaging==22.0
# via sphinx # via sphinx
pyasn1==0.4.8 pyasn1==0.4.8
# via # via
@ -75,12 +73,10 @@ pyasn1-modules==0.2.8
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# google-auth # google-auth
pycryptodome==3.15.0 pycryptodome==3.16.0
# via -r requirements/base.txt # via -r requirements/base.txt
pygments==2.13.0 pygments==2.13.0
# via sphinx # via sphinx
pyparsing==3.0.9
# via packaging
python-dateutil==2.8.2 python-dateutil==2.8.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
@ -118,7 +114,7 @@ sphinx==5.3.0
# -r requirements/docs.in # -r requirements/docs.in
# sphinx-click # sphinx-click
# sphinx-rtd-theme # sphinx-rtd-theme
sphinx-click==4.3.0 sphinx-click==4.4.0
# via -r requirements/docs.in # via -r requirements/docs.in
sphinx-rtd-theme==1.1.1 sphinx-rtd-theme==1.1.1
# via -r requirements/docs.in # via -r requirements/docs.in
@ -142,7 +138,7 @@ typing-extensions==4.4.0
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# mypy # mypy
urllib3==1.26.12 urllib3==1.26.13
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
@ -151,8 +147,6 @@ websocket-client==1.4.2
# via # via
# -r requirements/base.txt # -r requirements/base.txt
# kubernetes # kubernetes
zipp==3.10.0
# via importlib-metadata
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
# setuptools # setuptools

View File

@ -1,13 +1,11 @@
# For Tutor Nightly, we install plugins from their nightly branches instead of from PyPI # change version ranges when upgrading from olive
# (except tutor-license, for which we just want the latest version from PyPI). tutor-android>=15.0.0,<16.0.0
tutor-android @ git+https://github.com/overhangio/tutor-android@nightly tutor-discovery>=15.0.0,<16.0.0
tutor-discovery @ git+https://github.com/overhangio/tutor-discovery@nightly tutor-ecommerce>=15.0.0,<16.0.0
tutor-ecommerce @ git+https://github.com/overhangio/tutor-ecommerce@nightly tutor-forum>=15.0.0,<16.0.0
tutor-forum @ git+https://github.com/overhangio/tutor-forum@nightly tutor-license>=15.0.0,<16.0.0
tutor-license tutor-mfe>=15.0.0,<16.0.0
tutor-mfe @ git+https://github.com/overhangio/tutor-mfe@nightly tutor-minio>=15.0.0,<16.0.0
tutor-minio @ git+https://github.com/overhangio/tutor-minio@nightly tutor-notes>=15.0.0,<16.0.0
tutor-notes @ git+https://github.com/overhangio/tutor-notes@nightly tutor-webui>=15.0.0,<16.0.0
tutor-webui @ git+https://github.com/overhangio/tutor-webui@nightly tutor-xqueue>=15.0.0,<16.0.0
tutor-xqueue @ git+https://github.com/overhangio/tutor-xqueue@nightly

View File

@ -258,6 +258,6 @@ class CurrentVersionTests(unittest.TestCase):
) as f: ) as f:
f.write(__version__) f.write(__version__)
self.assertEqual(__version__, env.current_version(root)) self.assertEqual(__version__, env.current_version(root))
self.assertEqual("nutmeg", env.get_env_release(root)) self.assertEqual("olive", env.get_env_release(root))
self.assertIsNone(env.should_upgrade_from_release(root)) self.assertIsNone(env.should_upgrade_from_release(root))
self.assertTrue(env.is_up_to_date(root)) self.assertTrue(env.is_up_to_date(root))

View File

@ -2,7 +2,7 @@ import os
# Increment this version number to trigger a new release. See # Increment this version number to trigger a new release. See
# docs/tutor.html#versioning for information on the versioning scheme. # docs/tutor.html#versioning for information on the versioning scheme.
__version__ = "14.2.3" __version__ = "15.0.0"
# The version suffix will be appended to the actual version, separated by a # The version suffix will be appended to the actual version, separated by a
# dash. Use this suffix to differentiate between the actual released version and # dash. Use this suffix to differentiate between the actual released version and
@ -10,7 +10,7 @@ __version__ = "14.2.3"
# the nightly branch. # the nightly branch.
# The suffix is cleanly separated from the __version__ in this module to avoid # The suffix is cleanly separated from the __version__ in this module to avoid
# conflicts when merging branches. # conflicts when merging branches.
__version_suffix__ = "nightly" __version_suffix__ = ""
# The app name will be used to define the name of the default tutor root and # The app name will be used to define the name of the default tutor root and
# plugin directory. To avoid conflicts between multiple locally-installed # plugin directory. To avoid conflicts between multiple locally-installed

View File

@ -32,6 +32,10 @@ def upgrade_from(context: Context, from_release: str) -> None:
upgrade_from_maple(context, config) upgrade_from_maple(context, config)
running_release = "nutmeg" running_release = "nutmeg"
if running_release == "nutmeg":
# Upgrade is a no-op
running_release = "olive"
def upgrade_from_ironwood(config: Config) -> None: def upgrade_from_ironwood(config: Config) -> None:
if not config["RUN_MONGODB"]: if not config["RUN_MONGODB"]:

View File

@ -35,6 +35,10 @@ def upgrade_from(context: click.Context, from_release: str) -> None:
upgrade_from_maple(context, config) upgrade_from_maple(context, config)
running_release = "nutmeg" running_release = "nutmeg"
if running_release == "nutmeg":
# Upgrade is a no-op
running_release = "olive"
def upgrade_from_ironwood(context: click.Context, config: Config) -> None: def upgrade_from_ironwood(context: click.Context, config: Config) -> None:
click.echo(fmt.title("Upgrading from Ironwood")) click.echo(fmt.title("Upgrading from Ironwood"))

View File

@ -384,6 +384,7 @@ def get_release(version: str) -> str:
"12": "lilac", "12": "lilac",
"13": "maple", "13": "maple",
"14": "nutmeg", "14": "nutmeg",
"15": "olive",
}[version.split(".", maxsplit=1)[0]] }[version.split(".", maxsplit=1)[0]]

View File

@ -37,37 +37,4 @@ HTTPS: "{{ "on" if ENABLE_HTTPS else "off" }}"
LANGUAGE_CODE: "{{ LANGUAGE_CODE }}" LANGUAGE_CODE: "{{ LANGUAGE_CODE }}"
SESSION_COOKIE_DOMAIN: "{{ CMS_HOST }}" SESSION_COOKIE_DOMAIN: "{{ CMS_HOST }}"
{{ patch("cms-env") }} {{ patch("cms-env") }}
CACHES:
default:
KEY_PREFIX: "default"
VERSION: "1"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
general:
KEY_PREFIX: "general"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
mongo_metadata_inheritance:
KEY_PREFIX: "mongo_metadata_inheritance"
TIMEOUT: 300
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
staticfiles:
KEY_PREFIX: "staticfiles_cms"
BACKEND: "django.core.cache.backends.locmem.LocMemCache"
LOCATION: "staticfiles_cms"
configuration:
KEY_PREFIX: "configuration"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
celery:
KEY_PREFIX: "celery"
TIMEOUT: "7200"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
course_structure_cache:
KEY_PREFIX: "course_structure"
TIMEOUT: "7200"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
{% include "apps/openedx/config/partials/auth.yml" %} {% include "apps/openedx/config/partials/auth.yml" %}

View File

@ -21,7 +21,6 @@ FEATURES:
ENABLE_PREREQUISITE_COURSES: true ENABLE_PREREQUISITE_COURSES: true
ENABLE_THIRD_PARTY_AUTH: true ENABLE_THIRD_PARTY_AUTH: true
MILESTONES_APP: true MILESTONES_APP: true
PERSISTENT_GRADES_ENABLED_FOR_ALL_TESTS: true
LMS_ROOT_URL: "{{ "https" if ENABLE_HTTPS else "http" }}://{{ LMS_HOST }}" LMS_ROOT_URL: "{{ "https" if ENABLE_HTTPS else "http" }}://{{ LMS_HOST }}"
CMS_ROOT_URL: "{{ "https" if ENABLE_HTTPS else "http" }}://{{ CMS_HOST }}" CMS_ROOT_URL: "{{ "https" if ENABLE_HTTPS else "http" }}://{{ CMS_HOST }}"
CMS_BASE: "{{ CMS_HOST }}" CMS_BASE: "{{ CMS_HOST }}"
@ -45,41 +44,4 @@ HTTPS: "{{ "on" if ENABLE_HTTPS else "off" }}"
LANGUAGE_CODE: "{{ LANGUAGE_CODE }}" LANGUAGE_CODE: "{{ LANGUAGE_CODE }}"
SESSION_COOKIE_DOMAIN: "{{ LMS_HOST }}" SESSION_COOKIE_DOMAIN: "{{ LMS_HOST }}"
{{ patch("lms-env") }} {{ patch("lms-env") }}
CACHES:
default:
KEY_PREFIX: "default"
VERSION: "1"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
general:
KEY_PREFIX: "general"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
mongo_metadata_inheritance:
KEY_PREFIX: "mongo_metadata_inheritance"
TIMEOUT: 300
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
staticfiles:
KEY_PREFIX: "staticfiles_lms"
BACKEND: "django.core.cache.backends.locmem.LocMemCache"
LOCATION: "staticfiles_lms"
configuration:
KEY_PREFIX: "configuration"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
celery:
KEY_PREFIX: "celery"
TIMEOUT: "7200"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
course_structure_cache:
KEY_PREFIX: "course_structure"
TIMEOUT: "7200"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
ora2-storage:
KEY_PREFIX: "ora2-storage"
BACKEND: "django_redis.cache.RedisCache"
LOCATION: "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}"
{% include "apps/openedx/config/partials/auth.yml" %} {% include "apps/openedx/config/partials/auth.yml" %}

View File

@ -40,8 +40,46 @@ ELASTIC_SEARCH_CONFIG = [{
"port": {{ ELASTICSEARCH_PORT }}, "port": {{ ELASTICSEARCH_PORT }},
}] }]
CONTACT_MAILING_ADDRESS = "{{ PLATFORM_NAME }} - {% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}" # Common cache config
CACHES = {
"default": {
"KEY_PREFIX": "default",
"VERSION": "1",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
"general": {
"KEY_PREFIX": "general",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
"mongo_metadata_inheritance": {
"KEY_PREFIX": "mongo_metadata_inheritance",
"TIMEOUT": 300,
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
"configuration": {
"KEY_PREFIX": "configuration",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
"celery": {
"KEY_PREFIX": "celery",
"TIMEOUT": 7200,
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
"course_structure_cache": {
"KEY_PREFIX": "course_structure",
"TIMEOUT": 7200,
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
},
}
# Contact addresses
CONTACT_MAILING_ADDRESS = "{{ PLATFORM_NAME }} - {% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}"
DEFAULT_FROM_EMAIL = ENV_TOKENS.get("DEFAULT_FROM_EMAIL", ENV_TOKENS["CONTACT_EMAIL"]) DEFAULT_FROM_EMAIL = ENV_TOKENS.get("DEFAULT_FROM_EMAIL", ENV_TOKENS["CONTACT_EMAIL"])
DEFAULT_FEEDBACK_EMAIL = ENV_TOKENS.get("DEFAULT_FEEDBACK_EMAIL", ENV_TOKENS["CONTACT_EMAIL"]) DEFAULT_FEEDBACK_EMAIL = ENV_TOKENS.get("DEFAULT_FEEDBACK_EMAIL", ENV_TOKENS["CONTACT_EMAIL"])
SERVER_EMAIL = ENV_TOKENS.get("SERVER_EMAIL", ENV_TOKENS["CONTACT_EMAIL"]) SERVER_EMAIL = ENV_TOKENS.get("SERVER_EMAIL", ENV_TOKENS["CONTACT_EMAIL"])

View File

@ -1,8 +1,13 @@
{% include "apps/openedx/settings/partials/common_all.py" %} {% include "apps/openedx/settings/partials/common_all.py" %}
######## Common CMS settings ######## Common CMS settings
STUDIO_NAME = "{{ PLATFORM_NAME }} - Studio"
STUDIO_NAME = u"{{ PLATFORM_NAME }} - Studio" CACHES["staticfiles"] = {
"KEY_PREFIX": "staticfiles_cms",
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "staticfiles_cms",
}
# Authentication # Authentication
SOCIAL_AUTH_EDX_OAUTH2_SECRET = "{{ CMS_OAUTH2_SECRET }}" SOCIAL_AUTH_EDX_OAUTH2_SECRET = "{{ CMS_OAUTH2_SECRET }}"

View File

@ -21,10 +21,27 @@ OAUTH_ENFORCE_SECURE = False
# Email settings # Email settings
DEFAULT_EMAIL_LOGO_URL = LMS_ROOT_URL + "/theming/asset/images/logo.png" DEFAULT_EMAIL_LOGO_URL = LMS_ROOT_URL + "/theming/asset/images/logo.png"
BULK_EMAIL_SEND_USING_EDX_ACE = True BULK_EMAIL_SEND_USING_EDX_ACE = True
FEATURES["ENABLE_FOOTER_MOBILE_APP_LINKS"] = False
# Branding
MOBILE_STORE_ACE_URLS = {}
SOCIAL_MEDIA_FOOTER_ACE_URLS = {}
# Make it possible to hide courses by default from the studio # Make it possible to hide courses by default from the studio
SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING = False SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING = False
# Caching
CACHES["staticfiles"] = {
"KEY_PREFIX": "staticfiles_lms",
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "staticfiles_lms",
}
CACHES["ora2-storage"] = {
"KEY_PREFIX": "ora2-storage",
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
}
# Create folders if necessary # Create folders if necessary
for folder in [DATA_DIR, LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]: for folder in [DATA_DIR, LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]:
if not os.path.exists(folder): if not os.path.exists(folder):

View File

@ -47,6 +47,9 @@ RUN git config --global user.email "tutor@overhang.io" \
{{ patch("openedx-dockerfile-git-patches-default") }} {{ patch("openedx-dockerfile-git-patches-default") }}
{%- else %} {%- else %}
# Patch edx-platform # Patch edx-platform
# Fix broken Circuit Schematic Builder problem template
# https://github.com/openedx/edx-platform/pull/31365
RUN curl -fsSL https://github.com/openedx/edx-platform/commit/20b93b8b01276edadddfbbb67f15714fddd81c31.patch | git am
{%- endif %} {%- endif %}
{# Example: RUN curl -fsSL https://github.com/openedx/edx-platform/commit/<GITSHA1> | git am #} {# Example: RUN curl -fsSL https://github.com/openedx/edx-platform/commit/<GITSHA1> | git am #}
@ -73,7 +76,7 @@ RUN apt update && apt install -y software-properties-common libmysqlclient-dev l
# https://pypi.org/project/setuptools/ # https://pypi.org/project/setuptools/
# https://pypi.org/project/pip/ # https://pypi.org/project/pip/
# https://pypi.org/project/wheel/ # https://pypi.org/project/wheel/
RUN pip install setuptools==62.1.0 pip==22.0.4 wheel==0.37.1 RUN pip install setuptools==65.5.1 pip==22.3.1. wheel==0.38.4
# Install base requirements # Install base requirements
COPY --from=code /openedx/edx-platform/requirements/edx/base.txt /tmp/base.txt COPY --from=code /openedx/edx-platform/requirements/edx/base.txt /tmp/base.txt
@ -85,7 +88,7 @@ RUN pip install django-redis==5.2.0
# Install uwsgi # Install uwsgi
# https://pypi.org/project/uWSGI/ # https://pypi.org/project/uWSGI/
RUN pip install uwsgi==2.0.20 RUN pip install uwsgi==2.0.21
{{ patch("openedx-dockerfile-post-python-requirements") }} {{ patch("openedx-dockerfile-post-python-requirements") }}
@ -103,7 +106,8 @@ FROM python as nodejs-requirements
ENV PATH /openedx/nodeenv/bin:/openedx/venv/bin:${PATH} ENV PATH /openedx/nodeenv/bin:/openedx/venv/bin:${PATH}
# Install nodeenv with the version provided by edx-platform # Install nodeenv with the version provided by edx-platform
RUN pip install nodeenv==1.6.0 # https://github.com/openedx/edx-platform/blob/master/requirements/edx/base.txt
RUN pip install nodeenv==1.7.0
RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt
# Install nodejs requirements # Install nodejs requirements

View File

@ -1 +1 @@
EDX_PLATFORM_REVISION: nutmeg EDX_PLATFORM_REVISION: olive

View File

@ -50,11 +50,10 @@ OPENEDX_CELERY_REDIS_DB: 0
OPENEDX_CMS_UWSGI_WORKERS: 2 OPENEDX_CMS_UWSGI_WORKERS: 2
OPENEDX_LMS_UWSGI_WORKERS: 2 OPENEDX_LMS_UWSGI_WORKERS: 2
OPENEDX_MYSQL_DATABASE: "openedx" OPENEDX_MYSQL_DATABASE: "openedx"
OPENEDX_CSMH_MYSQL_DATABASE: "{{ OPENEDX_MYSQL_DATABASE }}_csmh"
OPENEDX_MYSQL_USERNAME: "openedx" OPENEDX_MYSQL_USERNAME: "openedx"
OPENEDX_COMMON_VERSION: "master" OPENEDX_COMMON_VERSION: "open-release/olive.1"
OPENEDX_EXTRA_PIP_REQUIREMENTS: OPENEDX_EXTRA_PIP_REQUIREMENTS:
- "openedx-scorm-xblock<15.0.0,>=14.0.0" - "openedx-scorm-xblock>=15.0.0,<16.0.0"
MYSQL_HOST: "mysql" MYSQL_HOST: "mysql"
MYSQL_PORT: 3306 MYSQL_PORT: 3306
MYSQL_ROOT_USERNAME: "root" MYSQL_ROOT_USERNAME: "root"