From a05486e7b0f42af074d5da9002f041d5cac1ec8d Mon Sep 17 00:00:00 2001 From: Eric Herrera Date: Wed, 7 Apr 2021 08:24:29 -0500 Subject: [PATCH] feat: openedx Dockerfile python requirements extension patch Add patches to extend python requirements installation process in openedx and openedx-dev Dockerfiles --- CHANGELOG.md | 1 + tutor/templates/build/openedx-dev/Dockerfile | 2 ++ tutor/templates/build/openedx/Dockerfile | 2 ++ 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 532160a..a5dbe99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Note: Breaking changes between versions are indicated by "💥". ## Unreleased +- [Feature] Add patches to extend python requirements installation process in openedx and openedx-dev Dockerfiles. ## v11.2.6 (2021-04-09) diff --git a/tutor/templates/build/openedx-dev/Dockerfile b/tutor/templates/build/openedx-dev/Dockerfile index 342b7b2..8d9afbf 100644 --- a/tutor/templates/build/openedx-dev/Dockerfile +++ b/tutor/templates/build/openedx-dev/Dockerfile @@ -13,6 +13,8 @@ RUN pip install -r requirements/edx/development.txt # We might be able to avoid this once they make a release later than 7.19.0. RUN pip install ipdb==0.13.4 git+https://github.com/ipython/ipython.git@d0649a54a8936a8019d54549779dc92bcbde4e68#egg=ipython +{{ patch("openedx-dev-dockerfile-post-python-requirements") }} + # Recompile static assets: in development mode all static assets are stored in edx-platform, # and the location of these files is stored in webpack-stats.json. If we don't recompile # static assets, then production assets will be served instead. diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index 797d101..7be2aaf 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -87,6 +87,8 @@ RUN pip install django-redis==4.12.1 # Install uwsgi RUN pip install uwsgi==2.0.19.1 +{{ patch("openedx-dockerfile-post-python-requirements") }} + # Install private requirements: this is useful for installing custom xblocks. COPY ./requirements/ /openedx/requirements RUN cd /openedx/requirements/ \