Skip to content

Commit

Permalink
temp: workarround to download requirements when the openedx image isn…
Browse files Browse the repository at this point in the history
…'t tagged
  • Loading branch information
MoisesGSalas committed Jun 20, 2024
1 parent 29c74a4 commit 97fde40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorcodejail/templates/codejail/build/codejail/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ 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
Expand All @@ -51,7 +52,7 @@ ENV VIRTUAL_ENV /sandbox/venv/
WORKDIR /var/tmp
RUN mkdir -p common/lib/

COPY --from={{ DOCKER_IMAGE_OPENEDX }} /openedx/edx-platform/requirements/edx-sandbox/releases/redwood.txt redwood.txt
COPY --from=code /openedx/redwood.txt redwood.txt
RUN pip3 install -r redwood.txt

# Allows you to add extra pip requirements to your codejail sandbox.
Expand Down

0 comments on commit 97fde40

Please sign in to comment.