From 5cb1abf6b12e5fe9fa80770dedb1f0f54e42e94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 7 Jun 2019 08:53:33 +0200 Subject: [PATCH] Make data directories in openedx/xqueue containers These directories are not necessary per se, but they allow us to use our tutor settings without having to mount an external directory. --- tutor/templates/build/openedx/Dockerfile | 3 +++ tutor/templates/build/xqueue/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index c55c358..eede4be 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -80,6 +80,9 @@ COPY ./themes/ /openedx/themes/ RUN openedx-assets themes \ && openedx-assets collect --settings=tutor.assets +# Create a data directory, which might be used (or not) +RUN mkdir /openedx/data + # service variant is "lms" or "cms" ENV SERVICE_VARIANT lms ENV SETTINGS tutor.production diff --git a/tutor/templates/build/xqueue/Dockerfile b/tutor/templates/build/xqueue/Dockerfile index 845ab04..1c492ed 100644 --- a/tutor/templates/build/xqueue/Dockerfile +++ b/tutor/templates/build/xqueue/Dockerfile @@ -5,7 +5,7 @@ RUN apt update && \ apt upgrade -y && \ apt install -y language-pack-en git python-pip libmysqlclient-dev -RUN mkdir /openedx +RUN mkdir /openedx /openedx/data RUN git clone https://github.com/edx/xqueue --branch open-release/ironwood.2 --depth 1 /openedx/xqueue WORKDIR /openedx/xqueue