From f11f47f9f0b70281b3a7069a4384ae3db858ae61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Wed, 22 May 2019 19:27:49 +0200 Subject: [PATCH] Fix installing a locally cloned requirement repository When running `pip install -r /path/to/x.txt`, relative paths listed in x.txt are supposed to be relative to the current folder, and not the x.txt folder. This results in an error during `pip install`: ./xblock-poll/ should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+ This error was first reported here: https://discuss.overhang.io/t/installing-custom-xblock/61 --- CHANGELOG.md | 1 + tutor/templates/build/openedx/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa0a149..faa7b20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Latest +- [Bugfix] Fix installing a locally cloned requirement repository - [Improvement] Add `--no-cache` option to `images build` - [Improvement] Make it possible to configure the notes service hostname diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index 08227ac..0dd73fb 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -58,7 +58,7 @@ ENV PATH ./node_modules/.bin:${PATH} # Install private requirements: this is useful for installing custom xblocks. COPY ./requirements/ /openedx/requirements -RUN pip install -r /openedx/requirements/private.txt +RUN cd /openedx/requirements/ && pip install -r ./private.txt # Create folder that will store *.env.json and *.auth.json files, as well as # the tutor-specific settings files.