mirror of
https://github.com/django/daphne.git
synced 2025-04-25 03:03:47 +03:00
* Ignore Emacs backups. * Do not override default websocket.connect handler. Channels specification 1.0 requires that websocket.connect handler returns meaningful message with {'accept': True} at least. * Add rabbitmq channel layer settings. * Add benchmark requirements in separate file. * Add RabbitMQ infrastructure part. * Adapt benchmark README for new docker layout. * Adapt fabric deploy for new settings module.
28 lines
729 B
Docker
28 lines
729 B
Docker
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Artem Malyshev <proofit404@gmail.com>
|
|
|
|
# python-dev \
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
git \
|
|
python-setuptools \
|
|
python-pip && \
|
|
pip install -U pip
|
|
|
|
# Install asgi_rabbitmq driver and most recent Daphne
|
|
RUN pip install \
|
|
git+https://github.com/proofit404/asgi_rabbitmq.git#egg=asgi_rabbitmq \
|
|
git+https://github.com/django/daphne.git@#egg=daphne
|
|
|
|
# Clone Channels and install it
|
|
RUN git clone https://github.com/django/channels.git /srv/channels/ && \
|
|
cd /srv/channels && \
|
|
git reset --hard origin/master && \
|
|
python setup.py install
|
|
|
|
WORKDIR /srv/channels/testproject/
|
|
ENV RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672/%2F
|
|
|
|
EXPOSE 80
|