2020-10-22 00:24:16 +00:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
2020-11-27 00:27:30 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
redis-server \
|
|
|
|
python3-pip \
|
|
|
|
stunnel
|
|
|
|
|
|
|
|
COPY tests/ssl_config/private.pem tests/ssl_config/stunnel.conf /etc/stunnel/
|
2020-10-22 00:24:16 +00:00
|
|
|
|
|
|
|
COPY . /tmp/rq
|
|
|
|
WORKDIR /tmp/rq
|
2020-11-27 00:27:30 +00:00
|
|
|
RUN pip3 install -r /tmp/rq/requirements.txt -r /tmp/rq/dev-requirements.txt \
|
|
|
|
&& python3 /tmp/rq/setup.py build \
|
|
|
|
&& python3 /tmp/rq/setup.py install
|
2020-10-22 00:24:16 +00:00
|
|
|
|
2020-11-27 00:27:30 +00:00
|
|
|
CMD stunnel \
|
|
|
|
& redis-server \
|
|
|
|
& RUN_SLOW_TESTS_TOO=1 RUN_SSL_TESTS=1 pytest /tmp/rq/tests/ --durations=5 -v --log-cli-level 10
|