mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-17 02:25:10 +00:00
af6e62b069
In the future, jinja2 templates will allow us to create more complex configuration templates.
26 lines
1.4 KiB
Docker
26 lines
1.4 KiB
Docker
FROM ubuntu:18.04
|
|
|
|
RUN apt update && \
|
|
apt install -y python3 python3-pip
|
|
RUN pip3 install jinja2
|
|
|
|
RUN mkdir /openedx
|
|
VOLUME /openedx/config
|
|
COPY ./bin/configure.py /openedx/configure.py
|
|
COPY ./bin/docker-entrypoint.sh /openedx/docker-entrypoint.sh
|
|
WORKDIR /openedx
|
|
|
|
ENV SILENT=''
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
|
CMD ./configure.py interactive ${SILENT:+--silent} && \
|
|
./configure.py substitute ./config/openedx/templates/lms.env.json.templ ./config/openedx/lms.env.json && \
|
|
./configure.py substitute ./config/openedx/templates/cms.env.json.templ ./config/openedx/cms.env.json && \
|
|
./configure.py substitute ./config/openedx/templates/lms.auth.json.templ ./config/openedx/lms.auth.json && \
|
|
./configure.py substitute ./config/openedx/templates/cms.auth.json.templ ./config/openedx/cms.auth.json && \
|
|
./configure.py substitute ./config/openedx/templates/provision.sh.templ ./config/openedx/provision.sh && \
|
|
./configure.py substitute ./config/xqueue/templates/universal.py.templ ./config/xqueue/universal.py && \
|
|
./configure.py substitute ./config/mysql/templates/auth.env.templ ./config/mysql/auth.env && \
|
|
./configure.py substitute ./config/nginx/templates/lms.conf.templ ./config/nginx/lms.conf && \
|
|
./configure.py substitute ./config/nginx/templates/cms.conf.templ ./config/nginx/cms.conf && \
|
|
./configure.py substitute ./config/android/templates/universal.yaml.templ ./config/android/universal.yaml
|