tutor 23.0.0.dev3196__tar.gz → 23.0.0.dev3199__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-23.0.0.dev3196 → tutor-23.0.0.dev3199}/PKG-INFO +1 -1
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/config.py +5 -0
- tutor-23.0.0.dev3199/tutor/templates/apps/openedx/granian-config +2 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/Dockerfile +11 -12
- tutor-23.0.0.dev3199/tutor/templates/build/openedx/bin/reload-granian +4 -0
- tutor-23.0.0.dev3199/tutor/templates/build/openedx/bin/run-granian +18 -0
- tutor-23.0.0.dev3199/tutor/templates/build/openedx/settings/granian-config +13 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/config/defaults.yml +2 -2
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/deployments.yml +18 -18
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/kustomization.yml +2 -2
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/local/docker-compose.yml +4 -4
- tutor-23.0.0.dev3196/tutor/templates/apps/openedx/uwsgi.ini +0 -3
- tutor-23.0.0.dev3196/tutor/templates/build/openedx/bin/reload-uwsgi +0 -3
- tutor-23.0.0.dev3196/tutor/templates/build/openedx/settings/uwsgi.ini +0 -23
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/.gitignore +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/.hatch_build.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/LICENSE.txt +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/README.rst +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/pyproject.toml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/requirements/base.in +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/requirements/dev.txt +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/requirements/plugins.txt +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/__about__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/bindmount.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/cli.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/compose.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/config.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/context.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/dev.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/images.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/jobs.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/jobs_utils.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/k8s.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/local.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/mounts.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/params.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/plugins.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/upgrade/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/upgrade/common.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/upgrade/compose.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/commands/upgrade/k8s.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/hooks/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/hooks/actions.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/hooks/contexts.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/hooks/filters.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/core/hooks/priorities.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/env.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/exceptions.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/fmt.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/hooks/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/hooks/catalog.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/images.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/interactive.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/base.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/indexes.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/openedx.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/v0.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/plugins/v1.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/py.typed +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/serialize.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/tasks.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/caddy/Caddyfile +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/cms.env.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/lms.env.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/partials/auth.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/development.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/production.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/test.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/development.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/production.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/test.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/partials/common_all.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/partials/common_cms.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/partials/common_lms.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/partials/common_test.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/permissions/setowners.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/redis/redis.conf +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/revisions.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/assets.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/i18n.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/__init__.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/assets.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/i18n.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/partials/assets.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/partials/i18n.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/themes/README +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/permissions/Dockerfile +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/permissions/setowner.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/config/base.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/dev/docker-compose.jobs.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/dev/docker-compose.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/cms.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/lms.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/meilisearch.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/mounted-directories.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/mysql.sh +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/jobs.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/namespace.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/override.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/services.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/k8s/volumes.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/local/docker-compose.jobs.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/local/docker-compose.prod.yml +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/version +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/types.py +0 -0
- {tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tutor
|
|
3
|
-
Version: 23.0.0.
|
|
3
|
+
Version: 23.0.0.dev3199
|
|
4
4
|
Summary: The Docker-based Open edX distribution designed for peace of mind
|
|
5
5
|
Project-URL: Homepage, https://docs.tutor.edly.io/
|
|
6
6
|
Project-URL: Documentation, https://docs.tutor.edly.io/
|
|
@@ -252,6 +252,11 @@ def upgrade_obsolete(config: Config) -> None:
|
|
|
252
252
|
config["ENABLE_WEB_PROXY"] = config.pop("RUN_CADDY")
|
|
253
253
|
if "NGINX_HTTP_PORT" in config:
|
|
254
254
|
config["CADDY_HTTP_PORT"] = config.pop("NGINX_HTTP_PORT")
|
|
255
|
+
# Replace uwsgi by granian
|
|
256
|
+
if "OPENEDX_LMS_UWSGI_WORKERS" in config:
|
|
257
|
+
config["OPENEDX_LMS_GRANIAN_WORKERS"] = config.pop("OPENEDX_LMS_UWSGI_WORKERS")
|
|
258
|
+
if "OPENEDX_CMS_UWSGI_WORKERS" in config:
|
|
259
|
+
config["OPENEDX_CMS_GRANIAN_WORKERS"] = config.pop("OPENEDX_CMS_UWSGI_WORKERS")
|
|
255
260
|
|
|
256
261
|
|
|
257
262
|
def convert_json2yml(root: str) -> None:
|
|
@@ -124,13 +124,9 @@ RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared \
|
|
|
124
124
|
# Use redis as a django cache https://pypi.org/project/django-redis/
|
|
125
125
|
django-redis==5.4.0
|
|
126
126
|
|
|
127
|
-
#
|
|
128
|
-
# We don't need xml configuration support in uwsgi so don't install it, as it causes
|
|
129
|
-
# uwsgi to crash
|
|
130
|
-
# https://github.com/xmlsec/python-xmlsec/issues/320
|
|
127
|
+
# granian server https://pypi.org/project/granian/
|
|
131
128
|
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared \
|
|
132
|
-
|
|
133
|
-
$PIP_COMMAND install --no-cache-dir --compile uwsgi==2.0.24
|
|
129
|
+
$PIP_COMMAND install --no-cache-dir --compile granian==2.7.4
|
|
134
130
|
|
|
135
131
|
# Install scorm xblock
|
|
136
132
|
RUN $PIP_COMMAND install "openedx-scorm-xblock>=19.0.0,<20.0.0"
|
|
@@ -264,6 +260,9 @@ RUN ./manage.py lms collectstatic --noinput --settings=tutor.assets && \
|
|
|
264
260
|
# Create a data directory, which might be used (or not)
|
|
265
261
|
RUN mkdir /openedx/data
|
|
266
262
|
|
|
263
|
+
# Create the media directory: granian refuses to start if a static path mount does not exist
|
|
264
|
+
RUN mkdir /openedx/media
|
|
265
|
+
|
|
267
266
|
# If this "canary" file is missing from a container, then that indicates that a
|
|
268
267
|
# local edx-platform was bind-mounted into that container, thus overwriting the
|
|
269
268
|
# canary. This information is useful during edx-platform initialisation.
|
|
@@ -329,14 +328,14 @@ CMD ["./manage.py", "$SERVICE_VARIANT", "runserver", "0.0.0.0:8000"]
|
|
|
329
328
|
###### Final image with production cmd
|
|
330
329
|
FROM production AS final
|
|
331
330
|
|
|
332
|
-
# Default amount of
|
|
333
|
-
ENV
|
|
331
|
+
# Default amount of Granian worker processes
|
|
332
|
+
ENV GRANIAN_WORKERS=2
|
|
334
333
|
|
|
335
|
-
# Copy
|
|
336
|
-
COPY --chown=app:app settings/
|
|
334
|
+
# Copy granian configuration file
|
|
335
|
+
COPY --chown=app:app settings/granian-config /openedx
|
|
337
336
|
|
|
338
|
-
# Run server
|
|
339
|
-
CMD ["
|
|
337
|
+
# Run server: granian has no config file support, so run-granian converts /openedx/granian-config to CLI arguments
|
|
338
|
+
CMD ["run-granian"]
|
|
340
339
|
|
|
341
340
|
{{ patch("openedx-dockerfile-final") }}
|
|
342
341
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Start granian with the options listed in /openedx/granian-config.
|
|
4
|
+
|
|
5
|
+
Granian has no config file support and only accepts command-line options, so
|
|
6
|
+
this wrapper converts the file into an argument list, one option per line,
|
|
7
|
+
with environment variables expanded.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
import shlex
|
|
12
|
+
|
|
13
|
+
from granian.cli import cli
|
|
14
|
+
|
|
15
|
+
if __name__ == "__main__":
|
|
16
|
+
with open("/openedx/granian-config", encoding="utf-8") as f:
|
|
17
|
+
args = shlex.split(os.path.expandvars(f.read()), comments=True)
|
|
18
|
+
cli(args=args)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
--interface wsgi
|
|
2
|
+
--host 0.0.0.0
|
|
3
|
+
--port 8000
|
|
4
|
+
--workers $GRANIAN_WORKERS
|
|
5
|
+
# Granian defaults to hundreds of threads per wsgi worker
|
|
6
|
+
--blocking-threads 8
|
|
7
|
+
# Respawn crashed workers instead of shutting down the whole server
|
|
8
|
+
--respawn-failed-workers
|
|
9
|
+
--static-path-route /static
|
|
10
|
+
--static-path-mount /openedx/staticfiles/
|
|
11
|
+
--static-path-route /media
|
|
12
|
+
--static-path-mount /openedx/media/
|
|
13
|
+
$SERVICE_VARIANT.wsgi:application
|
|
@@ -56,8 +56,8 @@ OPENEDX_AWS_ACCESS_KEY: ""
|
|
|
56
56
|
OPENEDX_AWS_SECRET_ACCESS_KEY: ""
|
|
57
57
|
OPENEDX_CACHE_REDIS_DB: 1
|
|
58
58
|
OPENEDX_CELERY_REDIS_DB: 0
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
OPENEDX_CMS_GRANIAN_WORKERS: 2
|
|
60
|
+
OPENEDX_LMS_GRANIAN_WORKERS: 2
|
|
61
61
|
OPENEDX_MYSQL_DATABASE: "openedx"
|
|
62
62
|
OPENEDX_MYSQL_USERNAME: "openedx"
|
|
63
63
|
# the common version will be automatically set to "master" in the main branch
|
|
@@ -84,8 +84,8 @@ spec:
|
|
|
84
84
|
value: cms
|
|
85
85
|
- name: DJANGO_SETTINGS_MODULE
|
|
86
86
|
value: cms.envs.tutor.production
|
|
87
|
-
- name:
|
|
88
|
-
value: "{{
|
|
87
|
+
- name: GRANIAN_WORKERS
|
|
88
|
+
value: "{{ OPENEDX_CMS_GRANIAN_WORKERS }}"
|
|
89
89
|
ports:
|
|
90
90
|
- containerPort: 8000
|
|
91
91
|
volumeMounts:
|
|
@@ -95,9 +95,9 @@ spec:
|
|
|
95
95
|
name: settings-cms
|
|
96
96
|
- mountPath: /openedx/config
|
|
97
97
|
name: config
|
|
98
|
-
- mountPath: /openedx/
|
|
99
|
-
name:
|
|
100
|
-
subPath:
|
|
98
|
+
- mountPath: /openedx/granian-config
|
|
99
|
+
name: granian-config
|
|
100
|
+
subPath: granian-config
|
|
101
101
|
resources:
|
|
102
102
|
requests:
|
|
103
103
|
memory: 2Gi
|
|
@@ -113,12 +113,12 @@ spec:
|
|
|
113
113
|
- name: config
|
|
114
114
|
configMap:
|
|
115
115
|
name: openedx-config
|
|
116
|
-
- name:
|
|
116
|
+
- name: granian-config
|
|
117
117
|
configMap:
|
|
118
|
-
name: openedx-
|
|
118
|
+
name: openedx-granian-config
|
|
119
119
|
items:
|
|
120
|
-
- key:
|
|
121
|
-
path:
|
|
120
|
+
- key: granian-config
|
|
121
|
+
path: granian-config
|
|
122
122
|
---
|
|
123
123
|
apiVersion: apps/v1
|
|
124
124
|
kind: Deployment
|
|
@@ -195,8 +195,8 @@ spec:
|
|
|
195
195
|
value: lms
|
|
196
196
|
- name: DJANGO_SETTINGS_MODULE
|
|
197
197
|
value: lms.envs.tutor.production
|
|
198
|
-
- name:
|
|
199
|
-
value: "{{
|
|
198
|
+
- name: GRANIAN_WORKERS
|
|
199
|
+
value: "{{ OPENEDX_LMS_GRANIAN_WORKERS }}"
|
|
200
200
|
ports:
|
|
201
201
|
- containerPort: 8000
|
|
202
202
|
volumeMounts:
|
|
@@ -206,9 +206,9 @@ spec:
|
|
|
206
206
|
name: settings-cms
|
|
207
207
|
- mountPath: /openedx/config
|
|
208
208
|
name: config
|
|
209
|
-
- mountPath: /openedx/
|
|
210
|
-
name:
|
|
211
|
-
subPath:
|
|
209
|
+
- mountPath: /openedx/granian-config
|
|
210
|
+
name: granian-config
|
|
211
|
+
subPath: granian-config
|
|
212
212
|
resources:
|
|
213
213
|
requests:
|
|
214
214
|
memory: 2Gi
|
|
@@ -224,12 +224,12 @@ spec:
|
|
|
224
224
|
- name: config
|
|
225
225
|
configMap:
|
|
226
226
|
name: openedx-config
|
|
227
|
-
- name:
|
|
227
|
+
- name: granian-config
|
|
228
228
|
configMap:
|
|
229
|
-
name: openedx-
|
|
229
|
+
name: openedx-granian-config
|
|
230
230
|
items:
|
|
231
|
-
- key:
|
|
232
|
-
path:
|
|
231
|
+
- key: granian-config
|
|
232
|
+
path: granian-config
|
|
233
233
|
---
|
|
234
234
|
apiVersion: apps/v1
|
|
235
235
|
kind: Deployment
|
|
@@ -62,9 +62,9 @@ configMapGenerator:
|
|
|
62
62
|
options:
|
|
63
63
|
labels:
|
|
64
64
|
app.kubernetes.io/name: openedx
|
|
65
|
-
- name: openedx-
|
|
65
|
+
- name: openedx-granian-config
|
|
66
66
|
files:
|
|
67
|
-
- apps/openedx/
|
|
67
|
+
- apps/openedx/granian-config
|
|
68
68
|
options:
|
|
69
69
|
labels:
|
|
70
70
|
app.kubernetes.io/name: openedx
|
|
@@ -99,13 +99,13 @@ services:
|
|
|
99
99
|
environment:
|
|
100
100
|
SERVICE_VARIANT: lms
|
|
101
101
|
DJANGO_SETTINGS_MODULE: lms.envs.tutor.production
|
|
102
|
-
|
|
102
|
+
GRANIAN_WORKERS: {{ OPENEDX_LMS_GRANIAN_WORKERS }}
|
|
103
103
|
restart: unless-stopped
|
|
104
104
|
volumes:
|
|
105
105
|
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:roz
|
|
106
106
|
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:roz
|
|
107
107
|
- ../apps/openedx/config:/openedx/config:roz
|
|
108
|
-
- ../apps/openedx/
|
|
108
|
+
- ../apps/openedx/granian-config:/openedx/granian-config:roz
|
|
109
109
|
- ../../data/lms:/openedx/data:z
|
|
110
110
|
- ../../data/openedx-media:/openedx/media:z
|
|
111
111
|
- ../../data/openedx-media-private:/openedx/media-private:z
|
|
@@ -126,13 +126,13 @@ services:
|
|
|
126
126
|
environment:
|
|
127
127
|
SERVICE_VARIANT: cms
|
|
128
128
|
DJANGO_SETTINGS_MODULE: cms.envs.tutor.production
|
|
129
|
-
|
|
129
|
+
GRANIAN_WORKERS: {{ OPENEDX_CMS_GRANIAN_WORKERS }}
|
|
130
130
|
restart: unless-stopped
|
|
131
131
|
volumes:
|
|
132
132
|
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:roz
|
|
133
133
|
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:roz
|
|
134
134
|
- ../apps/openedx/config:/openedx/config:roz
|
|
135
|
-
- ../apps/openedx/
|
|
135
|
+
- ../apps/openedx/granian-config:/openedx/granian-config:roz
|
|
136
136
|
- ../../data/cms:/openedx/data:z
|
|
137
137
|
- ../../data/openedx-media:/openedx/media:z
|
|
138
138
|
- ../../data/openedx-media-private:/openedx/media-private:z
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[uwsgi]
|
|
2
|
-
static-map = /static=/openedx/staticfiles/
|
|
3
|
-
static-map = /media=/openedx/media/
|
|
4
|
-
http = 0.0.0.0:8000
|
|
5
|
-
buffer-size = 8192
|
|
6
|
-
wsgi-file = $(SERVICE_VARIANT)/wsgi.py
|
|
7
|
-
processes = $(UWSGI_WORKERS)
|
|
8
|
-
thunder-lock = true
|
|
9
|
-
single-interpreter = true
|
|
10
|
-
enable-threads = true
|
|
11
|
-
# Fix 502 errors for closed connections
|
|
12
|
-
http-keepalive = 1
|
|
13
|
-
add-header = Connection: Keep-Alive
|
|
14
|
-
# Better startup/shutdown in docker:
|
|
15
|
-
die-on-term = true
|
|
16
|
-
lazy-apps = false
|
|
17
|
-
need-app = true
|
|
18
|
-
no-defer-accept = true
|
|
19
|
-
# Enable the master process for performance
|
|
20
|
-
master = true
|
|
21
|
-
# Clean up settings
|
|
22
|
-
py-call-osafterfork = true
|
|
23
|
-
vacuum = true
|
|
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
|
|
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
|
|
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
|
|
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-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/cms.env.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/lms.env.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/config/partials/auth.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/cms/test.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/apps/openedx/settings/lms/test.py
RENAMED
|
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-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/__init__.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/assets.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/cms/i18n.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/__init__.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/assets.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/build/openedx/settings/lms/i18n.py
RENAMED
|
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-23.0.0.dev3196 → tutor-23.0.0.dev3199}/tutor/templates/jobs/init/mounted-directories.sh
RENAMED
|
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
|