You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
949 B

  1. FROM ubuntu:20.04
  2. RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
  3. DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
  4. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  5. git \
  6. sudo \
  7. debianutils \
  8. python3-pip \
  9. python3-virtualenv \
  10. python3-dev \
  11. libevent-dev \
  12. libffi-dev \
  13. libxml2-dev \
  14. libxslt-dev \
  15. zlib1g-dev && \
  16. DEBIAN_FRONTEND=noninteractive apt-get clean && \
  17. rm -rf /var/lib/apt/lists/* && \
  18. git clone https://github.com/ceph/s3-tests.git /opt/s3-tests
  19. WORKDIR /opt/s3-tests
  20. RUN ./bootstrap
  21. ENV \
  22. NOSETESTS_EXCLUDE="" \
  23. NOSETESTS_ATTR="" \
  24. NOSETESTS_OPTIONS="" \
  25. S3TEST_CONF="/s3tests.conf"
  26. ENTRYPOINT ["/bin/bash", "-c"]
  27. CMD ["sleep 30 && exec ./virtualenv/bin/nosetests ${NOSETESTS_OPTIONS-} ${NOSETESTS_ATTR:+-a $NOSETESTS_ATTR} ${NOSETESTS_EXCLUDE:+-e $NOSETESTS_EXCLUDE}"]