2021-02-18 07:03:42 +08:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
sudo \
|
|
|
|
debianutils \
|
|
|
|
python3-pip \
|
|
|
|
python3-virtualenv \
|
|
|
|
python3-dev \
|
|
|
|
libevent-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
zlib1g-dev && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
git clone https://github.com/ceph/s3-tests.git /opt/s3-tests
|
|
|
|
|
|
|
|
WORKDIR /opt/s3-tests
|
|
|
|
RUN ./bootstrap
|
|
|
|
|
|
|
|
ENV \
|
|
|
|
NOSETESTS_EXCLUDE="" \
|
|
|
|
NOSETESTS_ATTR="" \
|
|
|
|
NOSETESTS_OPTIONS="" \
|
2024-06-25 08:15:16 +08:00
|
|
|
S3TEST_CONF="/s3tests.conf"
|
2021-02-18 07:03:42 +08:00
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c"]
|
2022-08-12 06:07:44 +08:00
|
|
|
CMD ["sleep 30 && exec ./virtualenv/bin/nosetests ${NOSETESTS_OPTIONS-} ${NOSETESTS_ATTR:+-a $NOSETESTS_ATTR} ${NOSETESTS_EXCLUDE:+-e $NOSETESTS_EXCLUDE}"]
|