mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-13 16:56:29 +00:00
3170541f91
Environment variables are now used in configuration files with ced.
18 lines
608 B
Docker
18 lines
608 B
Docker
FROM nginx:1.13
|
|
VOLUME /openedx/data
|
|
|
|
# TODO install ced from pip
|
|
RUN apt update
|
|
RUN apt install -y curl python
|
|
RUN curl https://raw.githubusercontent.com/regisb/ced/v0.2/ced/ced > /usr/local/bin/ced
|
|
RUN chmod a+x /usr/local/bin/ced
|
|
|
|
ARG lms_host=localhost
|
|
ARG cms_host=studio.$lms_host
|
|
ENV LMS_HOST=$lms_host CMS_HOST=$cms_host
|
|
|
|
COPY ./config/lms.conf.templ /etc/nginx/conf.d/lms.conf.templ
|
|
RUN ced -o /etc/nginx/conf.d/lms.conf -d £ /etc/nginx/conf.d/lms.conf.templ
|
|
COPY ./config/cms.conf.templ /etc/nginx/conf.d/cms.conf.templ
|
|
RUN ced -o /etc/nginx/conf.d/cms.conf -d £ /etc/nginx/conf.d/cms.conf.templ
|