2022-10-01 09:34:30 +00:00
|
|
|
FROM ubuntu:20.04
|
2021-06-12 04:51:11 +00:00
|
|
|
|
2022-10-01 09:34:30 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
|
2023-06-29 02:54:44 +00:00
|
|
|
# See: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa for supported versions of Python.
|
2022-10-01 09:34:30 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
zlib1g-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libgdbm-dev \
|
|
|
|
libnss3-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libreadline-dev \
|
2023-06-29 02:54:44 +00:00
|
|
|
libffi-dev \
|
|
|
|
wget \
|
2022-10-01 09:34:30 +00:00
|
|
|
software-properties-common && \
|
|
|
|
add-apt-repository ppa:deadsnakes/ppa && \
|
|
|
|
apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
2021-06-12 04:51:11 +00:00
|
|
|
redis-server \
|
|
|
|
python3-pip \
|
2022-10-01 09:34:30 +00:00
|
|
|
stunnel \
|
|
|
|
python3.7 \
|
2023-06-29 02:54:44 +00:00
|
|
|
python3.7-dev \
|
|
|
|
python3.7-distutils \
|
2022-10-01 09:34:30 +00:00
|
|
|
python3.8 \
|
2023-06-29 02:54:44 +00:00
|
|
|
python3.8-dev \
|
2022-10-01 09:34:30 +00:00
|
|
|
python3.9 \
|
2023-06-29 02:54:44 +00:00
|
|
|
python3.9-dev \
|
2022-10-01 09:34:30 +00:00
|
|
|
python3.10 \
|
2023-06-29 02:54:44 +00:00
|
|
|
python3.10-dev \
|
|
|
|
python3.11 \
|
|
|
|
python3.11-dev
|
2022-10-01 09:34:30 +00:00
|
|
|
|
|
|
|
RUN apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2021-06-12 04:51:11 +00:00
|
|
|
|
|
|
|
COPY tests/ssl_config/private.pem tests/ssl_config/stunnel.conf /etc/stunnel/
|
|
|
|
|
|
|
|
COPY . /tmp/rq
|
|
|
|
WORKDIR /tmp/rq
|
2022-10-01 09:34:30 +00:00
|
|
|
|
|
|
|
RUN set -e && \
|
|
|
|
python3 -m pip install --upgrade pip && \
|
|
|
|
python3 -m pip install --no-cache-dir tox && \
|
|
|
|
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
|
2021-06-12 04:51:11 +00:00
|
|
|
|
|
|
|
CMD stunnel \
|
|
|
|
& redis-server \
|
2022-10-01 09:34:30 +00:00
|
|
|
& RUN_SLOW_TESTS_TOO=1 RUN_SSL_TESTS=1 tox
|