Dockerfile.s3tests 935 B

12345678910111213141516171819202122232425262728293031
  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="/s3test.conf"
  26. ENTRYPOINT ["/bin/bash", "-c"]
  27. CMD ["exec ./virtualenv/bin/nosetests ${NOSETESTS_OPTIONS-} ${NOSETESTS_ATTR:+-a $NOSETESTS_ATTR} ${NOSETESTS_EXCLUDE:+-e $NOSETESTS_EXCLUDE}"]