6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

build: prepare Dockerfile for common/lib removal

Soon, running:

  pip install -r ./requirements/edx/base.txt

in edx-platform will no longer install the local
project (that is, `-e .`). To prepare for that change,
we add the line:

  pip install -e .

to the Dockerfile. This is backwards-compatible.
More details:
https://openedx.atlassian.net/browse/BOM-2575?focusedCommentId=613181
This commit is contained in:
Kyle McCormick 2022-08-30 14:22:52 -04:00 committed by Régis Behmo
parent 72c417da62
commit d9314b7507

View File

@ -74,8 +74,9 @@ ENV VIRTUAL_ENV /openedx/venv/
RUN apt update && apt install -y software-properties-common libmysqlclient-dev libxmlsec1-dev libgeos-dev
# Note that this means that we need to reinstall all requirements whenever there is a
# change in edx-platform, which sucks. But there is no obvious alternative, as we need
# to install some packages from edx-platform.
# change in edx-platform, which sucks. Yet, we must do it, because edx-platform installs some
# Python projects from within the edx-platform repo itself. This is being fixed upstream.
# TODO: https://github.com/overhangio/2u-tutor-adoption/issues/86
COPY --from=code /openedx/edx-platform /openedx/edx-platform
WORKDIR /openedx/edx-platform
@ -87,6 +88,7 @@ RUN pip install setuptools==62.1.0 pip==22.0.4 wheel==0.37.1
# Install base requirements
RUN pip install -r ./requirements/edx/base.txt
RUN pip install -e .
# Install django-redis for using redis as a django cache
# https://pypi.org/project/django-redis/