6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 12:57:52 +00:00
tutor/xqueue/Dockerfile
Régis Behmo 43a97e5fe3 Add xqueue services
Xqueue containers consist of two services: a gunicorn service, that
receives requests from LMS/CMS, and a worker service. I guess the worker
service receives orders from the gunicorn service, through rabbitmq.
(but I'm less than certain about that).

While adding xqueue containers, we refactored the way mysql databases
are created, and how the root password is loaded. Also, we silenced some
options from the configure script.
2018-06-04 23:41:22 -04:00

19 lines
574 B
Docker

FROM ubuntu:16.04
RUN apt update && \
apt upgrade -y && \
apt install -y language-pack-en git git-core python-pip libmysqlclient-dev
RUN mkdir /openedx
RUN git clone https://github.com/edx/xqueue --branch open-release/ginkgo.master --depth 1 /openedx/xqueue
WORKDIR /openedx/xqueue
RUN pip install -r pre-requirements.txt
RUN pip install -r requirements.txt
ENV DJANGO_SETTINGS_MODULE xqueue.universal
RUN ln -s /openedx/config/universal.py xqueue/universal.py
EXPOSE 8040
CMD gunicorn --name xqueue --bind=0.0.0.0:8040 --max-requests=1000 xqueue.wsgi:application