Dockerfile 586 B

123456789101112131415161718192021
  1. # the tests only support python 3.6, not newer
  2. #FROM ubuntu:latest
  3. FROM python:3.6.15-slim-buster
  4. # Installed required system deps
  5. RUN apt-get update \
  6. && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git-core sudo tzdata
  7. # Install python deps
  8. RUN pip install virtualenv
  9. # Clone Ceph S3 tests
  10. RUN git clone https://github.com/ceph/s3-tests.git
  11. WORKDIR s3-tests
  12. # Pin to a certain commit on ceph/s3-tests
  13. # https://github.com/ceph/s3-tests/commit/9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
  14. RUN git checkout 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
  15. RUN ./bootstrap