2022-02-07 17:11:43 +00:00
.. _patches:
2023-01-06 18:02:17 +00:00
======================
Template patch catalog
======================
2022-02-07 17:11:43 +00:00
This is the list of all patches used across Tutor (outside of any plugin). Alternatively, you can search for patches in Tutor templates by grepping the source code::
git clone https://github.com/overhangio/tutor
cd tutor
git grep "{{ patch" -- tutor/templates
2023-02-08 04:35:25 +00:00
Or you can list all available patches with the following command::
tutor config patches list
2022-02-07 17:11:43 +00:00
See also `this GitHub search <https://github.com/search?utf8=✓&q={{+patch+repo%3Aoverhangio%2Ftutor+path%3A%2Ftutor%2Ftemplates&type=Code&ref=advsearch&l=&l= 8> `__ .
.. patch :: caddyfile
`` caddyfile ``
=============
File: `` apps/caddy/Caddyfile ``
Add here Caddy directives to redirect traffic from the outside to your service containers. You should make use of the "proxy" snippet that simplifies configuration and automatically configures logging. Also, make sure to use the `` $default_site_port `` environment variable to make sure that your service will be accessible both when HTTPS is enabled or disabled. For instance::
{{ MYPLUGIN_HOST }}{$default_site_port} {
import proxy "myservice:8000"
}
See the `Caddy reference documentation <https://caddyserver.com/docs/caddyfile> `__ for more information.
.. patch :: caddyfile-cms
`` caddyfile-cms ``
=================
File: `` apps/caddy/Caddyfile ``
.. patch :: caddyfile-global
`` caddyfile-global ``
====================
File: `` apps/caddy/Caddyfile ``
.. patch :: caddyfile-lms
`` caddyfile-lms ``
=================
File: `` apps/caddy/Caddyfile ``
.. patch :: cms-env
`` cms-env ``
===========
2022-04-11 15:26:17 +00:00
File: `` apps/openedx/config/cms.env.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: cms-env-features
`` cms-env-features ``
====================
2022-04-11 15:26:17 +00:00
File: `` apps/openedx/config/cms.env.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: common-env-features
`` common-env-features ``
=======================
2022-04-11 15:26:17 +00:00
Files: `` apps/openedx/config/cms.env.yml `` , `` apps/openedx/config/lms.env.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: dev-docker-compose-jobs-services
`` dev-docker-compose-jobs-services ``
====================================
File: `` dev/docker-compose.jobs.yml ``
.. patch :: k8s-deployments
`` k8s-deployments ``
===================
File: `` k8s/deployments.yml ``
.. patch :: k8s-jobs
`` k8s-jobs ``
============
File: `` k8s/jobs.yml ``
2022-06-07 13:59:25 +00:00
.. patch :: k8s-override
`` k8s-override ``
================
File: `` k8s/override.yml ``
Any Kubernetes resource definition in this patch will override the resource defined by Tutor, provided that their names match. See :ref: `Customizing Kubernetes resources <customizing_kubernetes_sources>` for an example.
2022-02-07 17:11:43 +00:00
.. patch :: k8s-services
`` k8s-services ``
================
File: `` k8s/services.yml ``
.. patch :: k8s-volumes
`` k8s-volumes ``
===============
File: `` k8s/volumes.yml ``
.. patch :: kustomization
`` kustomization ``
=================
File: `` kustomization.yml ``
.. patch :: kustomization-commonlabels
`` kustomization-commonlabels ``
==============================
File: `` kustomization.yml ``
.. patch :: kustomization-configmapgenerator
`` kustomization-configmapgenerator ``
====================================
File: `` kustomization.yml ``
2022-06-07 13:59:25 +00:00
.. patch :: kustomization-patches-strategic-merge
`` kustomization-patches-strategic-merge ``
=========================================
File: `` kustomization.yml ``
This can be used to add more Kustomization patches that make use of the `strategic merge mechanism <https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/#customizing> `__ .
2022-02-07 17:11:43 +00:00
.. patch :: kustomization-resources
`` kustomization-resources ``
===========================
File: `` kustomization.yml ``
.. patch :: lms-env
`` lms-env ``
===========
2022-04-11 15:26:17 +00:00
File: `` apps/openedx/config/lms.env.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: lms-env-features
`` lms-env-features ``
====================
2022-04-11 15:26:17 +00:00
File: `` apps/openedx/config/lms.env.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: local-docker-compose-caddy-aliases
`` local-docker-compose-caddy-aliases ``
======================================
File: `` local/docker-compose.prod.yml ``
.. patch :: local-docker-compose-cms-dependencies
`` local-docker-compose-cms-dependencies ``
=========================================
File: `` local/docker-compose.yml ``
.. patch :: local-docker-compose-dev-services
`` local-docker-compose-dev-services ``
=====================================
File: `` dev/docker-compose.yml ``
.. patch :: local-docker-compose-jobs-services
`` local-docker-compose-jobs-services ``
======================================
File: `` local/docker-compose.jobs.yml ``
.. patch :: local-docker-compose-lms-dependencies
`` local-docker-compose-lms-dependencies ``
=========================================
File: `` local/docker-compose.yml ``
.. patch :: local-docker-compose-prod-services
`` local-docker-compose-prod-services ``
======================================
File: `` local/docker-compose.prod.yml ``
.. patch :: local-docker-compose-services
`` local-docker-compose-services ``
=================================
File: `` local/docker-compose.yml ``
.. patch :: openedx-auth
`` openedx-auth ``
================
2022-04-11 15:26:17 +00:00
File: `` apps/openedx/config/partials/auth.yml ``
2022-02-07 17:11:43 +00:00
.. patch :: openedx-cms-common-settings
`` openedx-cms-common-settings ``
===============================
File: `` apps/openedx/settings/partials/common_cms.py ``
.. patch :: openedx-cms-development-settings
`` openedx-cms-development-settings ``
====================================
File: `` apps/openedx/settings/cms/development.py ``
.. patch :: openedx-cms-production-settings
`` openedx-cms-production-settings ``
===================================
File: `` apps/openedx/settings/cms/production.py ``
.. patch :: openedx-common-assets-settings
`` openedx-common-assets-settings ``
==================================
File: `` build/openedx/settings/partials/assets.py ``
.. patch :: openedx-common-i18n-settings
`` openedx-common-i18n-settings ``
================================
File: `` build/openedx/settings/partials/i18n.py ``
.. patch :: openedx-common-settings
`` openedx-common-settings ``
===========================
File: `` apps/openedx/settings/partials/common_all.py ``
.. patch :: openedx-dev-dockerfile-post-python-requirements
`` openedx-dev-dockerfile-post-python-requirements ``
===================================================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-development-settings
`` openedx-development-settings ``
================================
Files: `` apps/openedx/settings/cms/development.py `` , `` apps/openedx/settings/lms/development.py ``
.. patch :: openedx-dockerfile
`` openedx-dockerfile ``
======================
File: `` build/openedx/Dockerfile ``
2022-05-26 01:36:22 +00:00
.. patch :: openedx-dockerfile-final
`` openedx-dockerfile-final ``
============================
File: `` build/openedx/Dockerfile ``
2022-02-07 17:11:43 +00:00
.. patch :: openedx-dockerfile-git-patches-default
`` openedx-dockerfile-git-patches-default ``
==========================================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-dockerfile-minimal
`` openedx-dockerfile-minimal ``
==============================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-dockerfile-post-git-checkout
`` openedx-dockerfile-post-git-checkout ``
========================================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-dockerfile-post-python-requirements
`` openedx-dockerfile-post-python-requirements ``
===============================================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-dockerfile-pre-assets
`` openedx-dockerfile-pre-assets ``
=================================
File: `` build/openedx/Dockerfile ``
.. patch :: openedx-lms-common-settings
`` openedx-lms-common-settings ``
===============================
File: `` apps/openedx/settings/partials/common_lms.py ``
Python-formatted LMS settings used both in production and development.
.. patch :: openedx-lms-development-settings
`` openedx-lms-development-settings ``
====================================
File: `` apps/openedx/settings/lms/development.py ``
Python-formatted LMS settings in development. Values defined here override the values from :patch: `openedx-lms-common-settings` or :patch: `openedx-lms-production-settings` .
.. patch :: openedx-lms-production-settings
`` openedx-lms-production-settings ``
===================================
File: `` apps/openedx/settings/lms/production.py ``
Python-formatted LMS settings in production. Values defined here override the values from :patch: `openedx-lms-common-settings` .