Skip to content

Conversation

@Ang-m4
Copy link
Collaborator

@Ang-m4 Ang-m4 commented Jul 7, 2025

Description

This pull request introduces Kubernetes deployment, service, and configuration updates to support serving compiled Paragon themes in the tutor-contrib-paragon plugin. The changes ensure that static assets for Paragon themes are properly deployed, served, and configured within the Kubernetes environment.

Kubernetes Deployment Configuration:

  • Added a new deployment for serving Paragon static files using an NGINX container. The deployment includes configuration for mounting static files from a ConfigMap and dynamically handling enabled themes (PARAGON_ENABLED_THEMES).

Kubernetes Service Configuration:

  • Introduced a new Kubernetes service to expose the Paragon static files deployment. The service listens on port 80 and targets the corresponding deployment.

ConfigMap Generator Configuration:

  • Added a configuration to generate a ConfigMap for Paragon static files. The ConfigMap includes core and theme-specific CSS files, dynamically generated based on the PARAGON_ENABLED_THEMES variable.

@Ang-m4 Ang-m4 requested a review from Alec4r July 7, 2025 18:11
@Ang-m4 Ang-m4 force-pushed the afg/styles-hosting-k8s branch from a5b9ed5 to d416674 Compare September 1, 2025 20:09
feanil and others added 5 commits September 5, 2025 09:17
This is based on the https://github.com/overhangio/cookiecutter-tutor-plugin

The major changes are:
* We moved the test workflow file to the top level `.github` repo.
* The instructions in the README are updated to match the location of
  this plugin in the openedx-tutor-plugins repo.
* We added the enable_lti_store.sh init task to run migrations and flip
  a waffle flag.
* We added the openedx-dockerfile-post-python-requirements patch to
  install the openedx-ltistore library.
* We removed a bunch of boilerplate from the plugin.py file that was not
  relevant.
There are issues with the base ltistore code so have the plugin install
a branch off of my fork for now where we can iterate and debug while we
test it out with the latest versions of edx-platform.
feat: Add a new plugin for enabling the openedx-ltistore library.
…s (FC-87) (openedx#38)

* feat: add bundle minification build step for hosting

* feat: add paragon static server and caddy configuration

* feat: add configuration for Paragon theme URLs in dev and local

* feat: add conditional logic for serving compiled themes

* feat: update static server from nginx to caddy for serving compiled themes

* fix: update tutor dependency to remove upper version limit

* feat: update Paragon theme configuration and static server settings

- add an upper limit version for tutor dependency
- create a shared template for the mfe config on both dev and local envs
- update the commonly used port for the hosting service to 12400

* feat: add tutor-mfe service integration

* fix: integration test dependencies

* feat: add integration tests for hosted files

* fix(test): update LMS_HOST variable for hosting tests

* fix: update MFE_CONFIG to use 'brandOverride' for theme URLs
@Ang-m4 Ang-m4 force-pushed the afg/styles-hosting-k8s branch from d416674 to 507d9a9 Compare September 15, 2025 17:01
@Ang-m4 Ang-m4 force-pushed the afg/styles-hosting-k8s branch from 507d9a9 to a7169b7 Compare September 15, 2025 17:02
@Ang-m4
Copy link
Collaborator Author

Ang-m4 commented Sep 15, 2025

I’ll be closing this PR, as its upstream contribution will be handled here: openedx#45

@Ang-m4 Ang-m4 closed this Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants