From 6fcc5158d95d61be086093009010733573d6d58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Thu, 20 Jun 2024 08:58:59 -0400 Subject: [PATCH] Revert "temp: workarround to download requirements when the openedx image isn't tagged" This reverts commit 97fde402acc7fc33b1c1c0d59932d6ce86b88085. --- tutorcodejail/templates/codejail/build/codejail/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tutorcodejail/templates/codejail/build/codejail/Dockerfile b/tutorcodejail/templates/codejail/build/codejail/Dockerfile index 5aa946d..48d3781 100644 --- a/tutorcodejail/templates/codejail/build/codejail/Dockerfile +++ b/tutorcodejail/templates/codejail/build/codejail/Dockerfile @@ -29,7 +29,6 @@ RUN $PYENV_ROOT/versions/"$SANDBOX_PYTHON_VERSION"_sandbox/bin/python -m venv -- ###### Codejail service code FROM minimal as code RUN git clone https://github.com/eduNEXT/codejailservice.git --branch {{ CODEJAIL_SERVICE_VERSION }} --depth 1 /openedx/codejailservice -RUN curl https://raw.githubusercontent.com/openedx/edx-platform/open-release/redwood.master/requirements/edx-sandbox/releases/redwood.txt -o /openedx/redwood.txt WORKDIR /openedx/codejailservice ###### Install python requirements in virtualenv @@ -52,7 +51,7 @@ ENV VIRTUAL_ENV /sandbox/venv/ WORKDIR /var/tmp RUN mkdir -p common/lib/ -COPY --from=code /openedx/redwood.txt redwood.txt +COPY --from={{ DOCKER_IMAGE_OPENEDX }} /openedx/edx-platform/requirements/edx-sandbox/releases/redwood.txt redwood.txt RUN pip3 install -r redwood.txt # Allows you to add extra pip requirements to your codejail sandbox.