tutor-notes 17.0.0__tar.gz → 19.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tutor-notes-17.0.0/tutor_notes.egg-info → tutor_notes-19.0.0}/PKG-INFO +11 -11
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/README.rst +4 -4
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/setup.py +6 -6
- {tutor-notes-17.0.0 → tutor_notes-19.0.0/tutor_notes.egg-info}/PKG-INFO +11 -11
- tutor_notes-19.0.0/tutor_notes.egg-info/requires.txt +4 -0
- tutor_notes-19.0.0/tutornotes/__about__.py +1 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-jobs-services +3 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-services +3 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/plugin.py +13 -20
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/templates/notes/apps/settings/tutor.py +7 -6
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/templates/notes/build/notes/Dockerfile +7 -3
- tutor_notes-19.0.0/tutornotes/templates/notes/tasks/notes/init +4 -0
- tutor-notes-17.0.0/tutor_notes.egg-info/requires.txt +0 -4
- tutor-notes-17.0.0/tutornotes/__about__.py +0 -1
- tutor-notes-17.0.0/tutornotes/templates/notes/tasks/notes/init +0 -2
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/LICENSE.txt +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/MANIFEST.in +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/pyproject.toml +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/setup.cfg +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutor_notes.egg-info/SOURCES.txt +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutor_notes.egg-info/dependency_links.txt +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutor_notes.egg-info/entry_points.txt +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutor_notes.egg-info/top_level.txt +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/__init__.py +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/caddyfile +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/k8s-deployments +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/k8s-jobs +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/k8s-services +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/kustomization-configmapgenerator +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-dev-services +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-permissions-command +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-permissions-volumes +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-common-settings +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-lms-common-settings +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-lms-development-settings +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-lms-production-settings +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/templates/notes/tasks/lms/init +0 -0
- {tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/templates/notes/tasks/mysql/init +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tutor-notes
|
|
3
|
-
Version:
|
|
3
|
+
Version: 19.0.0
|
|
4
4
|
Summary: A Tutor plugin for student notes
|
|
5
5
|
Home-page: https://docs.tutor.edly.io/
|
|
6
|
-
Author:
|
|
7
|
-
Author-email:
|
|
6
|
+
Author: Edly
|
|
7
|
+
Author-email: hello@edly.io
|
|
8
8
|
Maintainer: eduNEXT
|
|
9
9
|
License: AGPLv3
|
|
10
10
|
Project-URL: Documentation, https://docs.tutor.edly.io/
|
|
@@ -16,23 +16,23 @@ Classifier: Intended Audience :: Developers
|
|
|
16
16
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/x-rst
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: tutor<
|
|
26
|
+
Requires-Dist: tutor<20.0.0,>=19.0.0
|
|
27
27
|
Provides-Extra: dev
|
|
28
|
-
Requires-Dist: tutor[dev]<
|
|
28
|
+
Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == "dev"
|
|
29
29
|
|
|
30
30
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
31
31
|
===================================================================
|
|
32
32
|
|
|
33
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://
|
|
33
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/enable_notes.html>`_).
|
|
34
34
|
|
|
35
|
-
.. image:: https://
|
|
35
|
+
.. image:: https://docs.openedx.org/en/latest/_images/SFD_SN_bodyexample.png
|
|
36
36
|
:alt: Notes in action
|
|
37
37
|
|
|
38
38
|
Installation
|
|
@@ -52,7 +52,7 @@ Then, to make migrations & tasks::
|
|
|
52
52
|
|
|
53
53
|
You should beware that the ``notes.<LMS_HOST>`` domain name should exist and point to your server. For instance, if your LMS is hosted at http://myopenedx.com, the notes service should be found at http://notes.myopenedx.com.
|
|
54
54
|
|
|
55
|
-
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.
|
|
55
|
+
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.openedx.io.
|
|
56
56
|
|
|
57
57
|
To enable student notes for a specific course, you should go to the course advanced settings in the studio, and set "Enable Student Notes" to "true". Then, hit "save changes".
|
|
58
58
|
|
|
@@ -88,4 +88,4 @@ This Tutor plugin is maintained by Jhony Avella from `eduNEXT <https://www.edune
|
|
|
88
88
|
License
|
|
89
89
|
-------
|
|
90
90
|
|
|
91
|
-
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/
|
|
91
|
+
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/release/LICENSE.txt>`_.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
2
2
|
===================================================================
|
|
3
3
|
|
|
4
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://
|
|
4
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/enable_notes.html>`_).
|
|
5
5
|
|
|
6
|
-
.. image:: https://
|
|
6
|
+
.. image:: https://docs.openedx.org/en/latest/_images/SFD_SN_bodyexample.png
|
|
7
7
|
:alt: Notes in action
|
|
8
8
|
|
|
9
9
|
Installation
|
|
@@ -23,7 +23,7 @@ Then, to make migrations & tasks::
|
|
|
23
23
|
|
|
24
24
|
You should beware that the ``notes.<LMS_HOST>`` domain name should exist and point to your server. For instance, if your LMS is hosted at http://myopenedx.com, the notes service should be found at http://notes.myopenedx.com.
|
|
25
25
|
|
|
26
|
-
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.
|
|
26
|
+
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.openedx.io.
|
|
27
27
|
|
|
28
28
|
To enable student notes for a specific course, you should go to the course advanced settings in the studio, and set "Enable Student Notes" to "true". Then, hit "save changes".
|
|
29
29
|
|
|
@@ -59,4 +59,4 @@ This Tutor plugin is maintained by Jhony Avella from `eduNEXT <https://www.edune
|
|
|
59
59
|
License
|
|
60
60
|
-------
|
|
61
61
|
|
|
62
|
-
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/
|
|
62
|
+
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/release/LICENSE.txt>`_.
|
|
@@ -24,16 +24,17 @@ setup(
|
|
|
24
24
|
"Community": "https://discuss.openedx.org",
|
|
25
25
|
},
|
|
26
26
|
license="AGPLv3",
|
|
27
|
-
author="
|
|
28
|
-
author_email="
|
|
27
|
+
author="Edly",
|
|
28
|
+
author_email="hello@edly.io",
|
|
29
29
|
maintainer="eduNEXT",
|
|
30
30
|
description="A Tutor plugin for student notes",
|
|
31
31
|
long_description=readme,
|
|
32
|
+
long_description_content_type="text/x-rst",
|
|
32
33
|
packages=find_packages(exclude=["tests*"]),
|
|
33
34
|
include_package_data=True,
|
|
34
|
-
python_requires=">=3.
|
|
35
|
-
install_requires=["tutor>=
|
|
36
|
-
extras_require={"dev": ["tutor[dev]>=
|
|
35
|
+
python_requires=">=3.9",
|
|
36
|
+
install_requires=["tutor>=19.0.0,<20.0.0"],
|
|
37
|
+
extras_require={"dev": ["tutor[dev]>=19.0.0,<20.0.0"]},
|
|
37
38
|
entry_points={"tutor.plugin.v1": ["notes = tutornotes.plugin"]},
|
|
38
39
|
classifiers=[
|
|
39
40
|
"Development Status :: 5 - Production/Stable",
|
|
@@ -41,7 +42,6 @@ setup(
|
|
|
41
42
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
|
42
43
|
"Operating System :: OS Independent",
|
|
43
44
|
"Programming Language :: Python",
|
|
44
|
-
"Programming Language :: Python :: 3.8",
|
|
45
45
|
"Programming Language :: Python :: 3.9",
|
|
46
46
|
"Programming Language :: Python :: 3.10",
|
|
47
47
|
"Programming Language :: Python :: 3.11",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tutor-notes
|
|
3
|
-
Version:
|
|
3
|
+
Version: 19.0.0
|
|
4
4
|
Summary: A Tutor plugin for student notes
|
|
5
5
|
Home-page: https://docs.tutor.edly.io/
|
|
6
|
-
Author:
|
|
7
|
-
Author-email:
|
|
6
|
+
Author: Edly
|
|
7
|
+
Author-email: hello@edly.io
|
|
8
8
|
Maintainer: eduNEXT
|
|
9
9
|
License: AGPLv3
|
|
10
10
|
Project-URL: Documentation, https://docs.tutor.edly.io/
|
|
@@ -16,23 +16,23 @@ Classifier: Intended Audience :: Developers
|
|
|
16
16
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/x-rst
|
|
25
25
|
License-File: LICENSE.txt
|
|
26
|
-
Requires-Dist: tutor<
|
|
26
|
+
Requires-Dist: tutor<20.0.0,>=19.0.0
|
|
27
27
|
Provides-Extra: dev
|
|
28
|
-
Requires-Dist: tutor[dev]<
|
|
28
|
+
Requires-Dist: tutor[dev]<20.0.0,>=19.0.0; extra == "dev"
|
|
29
29
|
|
|
30
30
|
Students notes plugin for `Tutor <https://docs.tutor.edly.io>`_
|
|
31
31
|
===================================================================
|
|
32
32
|
|
|
33
|
-
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://
|
|
33
|
+
This is a plugin for `Tutor <https://docs.tutor.edly.io>`_ to easily add the `Open edX note-taking app <https://github.com/openedx/edx-notes-api>`_ to an Open edX platform. This app allows students to annotate portions of the courseware (see `the official documentation <https://docs.openedx.org/en/latest/educators/how-tos/course_development/exercise_tools/enable_notes.html>`_).
|
|
34
34
|
|
|
35
|
-
.. image:: https://
|
|
35
|
+
.. image:: https://docs.openedx.org/en/latest/_images/SFD_SN_bodyexample.png
|
|
36
36
|
:alt: Notes in action
|
|
37
37
|
|
|
38
38
|
Installation
|
|
@@ -52,7 +52,7 @@ Then, to make migrations & tasks::
|
|
|
52
52
|
|
|
53
53
|
You should beware that the ``notes.<LMS_HOST>`` domain name should exist and point to your server. For instance, if your LMS is hosted at http://myopenedx.com, the notes service should be found at http://notes.myopenedx.com.
|
|
54
54
|
|
|
55
|
-
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.
|
|
55
|
+
If you would like to host the notes service at a different domain name, you can set the ``NOTES_HOST`` configuration variable (see below). When testing Tutor on a local computer, this will be automatically set to notes.local.openedx.io.
|
|
56
56
|
|
|
57
57
|
To enable student notes for a specific course, you should go to the course advanced settings in the studio, and set "Enable Student Notes" to "true". Then, hit "save changes".
|
|
58
58
|
|
|
@@ -88,4 +88,4 @@ This Tutor plugin is maintained by Jhony Avella from `eduNEXT <https://www.edune
|
|
|
88
88
|
License
|
|
89
89
|
-------
|
|
90
90
|
|
|
91
|
-
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/
|
|
91
|
+
This software is licensed under the terms of the `GNU Affero General Public License (AGPL) <https://github.com/overhangio/tutor-notes/blob/release/LICENSE.txt>`_.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "19.0.0"
|
{tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-jobs-services
RENAMED
|
@@ -4,4 +4,7 @@ notes-job:
|
|
|
4
4
|
DJANGO_SETTINGS_MODULE: notesserver.settings.tutor
|
|
5
5
|
volumes:
|
|
6
6
|
- ../plugins/notes/apps/settings/tutor.py:/app/edx-notes-api/notesserver/settings/tutor.py:ro
|
|
7
|
+
{%- for mount in iter_mounts(MOUNTS, "notes") %}
|
|
8
|
+
- {{ mount }}
|
|
9
|
+
{%- endfor %}
|
|
7
10
|
depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}
|
|
@@ -6,5 +6,8 @@ notes:
|
|
|
6
6
|
volumes:
|
|
7
7
|
- ../plugins/notes/apps/settings/tutor.py:/app/edx-notes-api/notesserver/settings/tutor.py:ro
|
|
8
8
|
- ../../data/notes:/app/data
|
|
9
|
+
{%- for mount in iter_mounts(MOUNTS, "notes") %}
|
|
10
|
+
- {{ mount }}
|
|
11
|
+
{%- endfor %}
|
|
9
12
|
restart: unless-stopped
|
|
10
13
|
depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}
|
|
@@ -4,13 +4,13 @@ import os
|
|
|
4
4
|
import typing as t
|
|
5
5
|
from glob import glob
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import importlib_resources
|
|
8
8
|
from tutor import hooks as tutor_hooks
|
|
9
9
|
from tutor.__about__ import __version_suffix__
|
|
10
10
|
|
|
11
11
|
from .__about__ import __version__
|
|
12
12
|
|
|
13
|
-
# Handle version suffix in
|
|
13
|
+
# Handle version suffix in main mode, just like tutor core
|
|
14
14
|
if __version_suffix__:
|
|
15
15
|
__version__ += "-" + __version_suffix__
|
|
16
16
|
|
|
@@ -31,19 +31,17 @@ config = {
|
|
|
31
31
|
},
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
#
|
|
35
|
-
MY_INIT_TASKS: list[tuple[str, tuple[str, ...]]] = [
|
|
36
|
-
("mysql", ("notes", "tasks", "mysql", "init")),
|
|
37
|
-
("lms", ("notes", "tasks", "lms", "init")),
|
|
38
|
-
("notes", ("notes", "tasks", "notes", "init")),
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
# For each task added to MY_INIT_TASKS, we load the task template
|
|
34
|
+
# For each service, we load the task template
|
|
42
35
|
# and add it to the CLI_DO_INIT_TASKS filter, which tells Tutor to
|
|
43
36
|
# run it as part of the `init` job.
|
|
44
|
-
for service,
|
|
45
|
-
full_path: str =
|
|
46
|
-
|
|
37
|
+
for service in ["mysql", "lms", "notes"]:
|
|
38
|
+
full_path: str = str(
|
|
39
|
+
importlib_resources.files("tutornotes")
|
|
40
|
+
/ "templates"
|
|
41
|
+
/ "notes"
|
|
42
|
+
/ "tasks"
|
|
43
|
+
/ service
|
|
44
|
+
/ "init"
|
|
47
45
|
)
|
|
48
46
|
with open(full_path, encoding="utf-8") as init_task_file:
|
|
49
47
|
init_task: str = init_task_file.read()
|
|
@@ -91,7 +89,7 @@ def _mount_edx_notes_api(
|
|
|
91
89
|
|
|
92
90
|
# Add the "templates" folder as a template root
|
|
93
91
|
tutor_hooks.Filters.ENV_TEMPLATE_ROOTS.add_item(
|
|
94
|
-
|
|
92
|
+
str(importlib_resources.files("tutornotes") / "templates")
|
|
95
93
|
)
|
|
96
94
|
# Render the "build" and "apps" folders
|
|
97
95
|
tutor_hooks.Filters.ENV_TEMPLATE_TARGETS.add_items(
|
|
@@ -101,12 +99,7 @@ tutor_hooks.Filters.ENV_TEMPLATE_TARGETS.add_items(
|
|
|
101
99
|
],
|
|
102
100
|
)
|
|
103
101
|
# Load patches from files
|
|
104
|
-
for path in glob(
|
|
105
|
-
os.path.join(
|
|
106
|
-
pkg_resources.resource_filename("tutornotes", "patches"),
|
|
107
|
-
"*",
|
|
108
|
-
)
|
|
109
|
-
):
|
|
102
|
+
for path in glob(str(importlib_resources.files("tutornotes") / "patches" / "*")):
|
|
110
103
|
with open(path, encoding="utf-8") as patch_file:
|
|
111
104
|
tutor_hooks.Filters.ENV_PATCHES.add_item(
|
|
112
105
|
(os.path.basename(path), patch_file.read())
|
|
@@ -10,7 +10,7 @@ DATABASES = {
|
|
|
10
10
|
"default": {
|
|
11
11
|
"ENGINE": "django.db.backends.mysql",
|
|
12
12
|
"HOST": "{{ MYSQL_HOST }}",
|
|
13
|
-
"PORT": {{MYSQL_PORT}},
|
|
13
|
+
"PORT": {{ MYSQL_PORT }},
|
|
14
14
|
"NAME": "{{ NOTES_MYSQL_DATABASE }}",
|
|
15
15
|
"USER": "{{ NOTES_MYSQL_USERNAME }}",
|
|
16
16
|
"PASSWORD": "{{ NOTES_MYSQL_PASSWORD }}",
|
|
@@ -23,11 +23,12 @@ DATABASES = {
|
|
|
23
23
|
CLIENT_ID = "notes"
|
|
24
24
|
CLIENT_SECRET = "{{ NOTES_OAUTH2_SECRET }}"
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
26
|
+
# Meilisearch credentials
|
|
27
|
+
ES_DISABLED = True
|
|
28
|
+
MEILISEARCH_ENABLED = True
|
|
29
|
+
MEILISEARCH_URL = "{{ MEILISEARCH_URL }}"
|
|
30
|
+
MEILISEARCH_API_KEY = "{{ MEILISEARCH_API_KEY }}"
|
|
31
|
+
MEILISEARCH_INDEX = "{{ MEILISEARCH_INDEX_PREFIX }}student_notes"
|
|
31
32
|
|
|
32
33
|
LOGGING = {
|
|
33
34
|
"version": 1,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1.4
|
|
2
|
-
FROM docker.io/ubuntu:
|
|
2
|
+
FROM docker.io/ubuntu:24.04
|
|
3
3
|
|
|
4
4
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
5
|
+
|
|
6
|
+
# Delete default UID=1000 `ubuntu` user to ensure we can use id 1000 for app user
|
|
7
|
+
RUN userdel -r ubuntu
|
|
8
|
+
|
|
5
9
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
6
10
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
|
7
11
|
apt update && \
|
|
@@ -26,11 +30,11 @@ WORKDIR /app/edx-notes-api
|
|
|
26
30
|
|
|
27
31
|
###### Install python venv ######
|
|
28
32
|
RUN python -m venv /app/venv
|
|
29
|
-
ENV PATH
|
|
33
|
+
ENV PATH=/app/venv/bin:${PATH}
|
|
30
34
|
# https://pypi.org/project/setuptools/
|
|
31
35
|
# https://pypi.org/project/pip/
|
|
32
36
|
# https://pypi.org/project/wheel/
|
|
33
|
-
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==
|
|
37
|
+
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==75.2.0 pip==24.2 wheel==0.44.0
|
|
34
38
|
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install -r requirements/base.txt
|
|
35
39
|
|
|
36
40
|
EXPOSE 8000
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "17.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/kustomization-configmapgenerator
RENAMED
|
File without changes
|
{tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/local-docker-compose-dev-services
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-lms-development-settings
RENAMED
|
File without changes
|
{tutor-notes-17.0.0 → tutor_notes-19.0.0}/tutornotes/patches/openedx-lms-production-settings
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|