mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-05 12:57:52 +00:00
Fix "missing XModule" error
XModule could not be found because the compiled package could not be found in edx-platform/common/lib/xmodule. This was due to the fact that build operations realised after a VOLUME statement are ignored if they affect the content of this volume (although it's not mounted during build, of course). This is not a bug, it's a feature of the VOLUME statement :)
This commit is contained in:
parent
723836cc03
commit
dede31d1d3
@ -19,14 +19,12 @@ RUN apt install -y nodejs-legacy
|
||||
# Static assets will reside in /openedx/data and edx-platform will be
|
||||
# checked-out in /openedx/
|
||||
RUN mkdir /openedx /openedx/data /openedx/edx-platform
|
||||
VOLUME /openedx/data
|
||||
WORKDIR /openedx/edx-platform
|
||||
|
||||
## Checkout edx-platform code
|
||||
ARG EDX_PLATFORM_REPOSITORY=https://github.com/edx/edx-platform.git
|
||||
ARG EDX_PLATFORM_VERSION=open-release/ginkgo.master
|
||||
RUN git clone $EDX_PLATFORM_REPOSITORY --branch $EDX_PLATFORM_VERSION --depth 1 .
|
||||
VOLUME /openedx/edx-platform
|
||||
|
||||
# Install python requirements (clone source repos in a separate dir, otherwise
|
||||
# will be overwritten when we mount edx-platform)
|
||||
@ -54,6 +52,11 @@ COPY ./config/cms.auth.json /openedx/
|
||||
COPY ./wait-for-greenlight.sh /usr/local/bin/
|
||||
COPY ./docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
# Declare volumes as late as possible, otherwise steps that modify these
|
||||
# folders are discarded
|
||||
VOLUME /openedx/data
|
||||
VOLUME /openedx/edx-platform
|
||||
|
||||
# service variant is "lms" or "cms"
|
||||
ENV SERVICE_VARIANT lms
|
||||
ENV SETTINGS production
|
||||
|
Loading…
Reference in New Issue
Block a user