eduNEXT / tutor-contrib-edunext-distro

A tool to facilitate the customization of an Openedx instance, adding commands and settings to have an easy-to-use and a ready-to-deploy in local or in development openedx distribution.
2 stars 1 forks source link

feat: added command to create edunex/distro-themes #1

Closed black-redoc closed 2 years ago

black-redoc commented 2 years ago

Description:

Added a command to create the volume in env/build/openedx/edunext/themes/ednx/saas-themes to persist the themes with the dockerimage. And cloned the repo saas-themes.

Added DOCKER_IMAGE... settings to config.set

{
  "set": {
    "DOCKER_IMAGE_OPENEDX": "docker.io/ednxops/distro-edunext-edxapp:vM.mango.1.0-plugin",
    "DOCKER_IMAGE_OPENEDX_DEV": "docker.io/ednxops/distro-edunext-edxapp-dev:vM.mango.1.0-plugin",
    "EDX_PLATFORM_REPOSITORY": "https://github.com/eduNEXT/edunext-platform.git",
    "EDX_PLATFORM_VERSION": "edunext/mango.master",
  }
}

How to test:

git clone git@github.com:eduNEXT/tutor-contrib-edunext-distro
virtualenv venv
source venv/bin/activate
pip install tutor
pip install -e ./tutor_contrib_edunext_distro
tutor config save
tutor distro enable-themes
MaferMazu commented 2 years ago

I am going to allow myself the audacity to make a commit that adds the ssh protocol (to download private repos), and the guard so that the success message happens if there is really success downloading the themes. @black-redoc @Alec4r

Problem

Screenshot from 2022-03-23 10-22-022

black-redoc commented 2 years ago

@MaferMazu would you try to catch the exception throughout the subprocess API