2021-12-31 21:07:49 +00:00
|
|
|
# the tests only support python 3.6, not newer
|
2023-11-09 05:03:47 +00:00
|
|
|
#FROM ubuntu:latest
|
|
|
|
FROM python:3.6.15-slim-buster
|
2021-12-31 21:07:49 +00:00
|
|
|
|
2023-11-09 05:03:47 +00:00
|
|
|
# Installed required system deps
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git-core sudo tzdata
|
|
|
|
|
|
|
|
# Install python deps
|
|
|
|
RUN pip install virtualenv
|
|
|
|
|
|
|
|
# Clone Ceph S3 tests
|
2021-12-31 21:07:49 +00:00
|
|
|
RUN git clone https://github.com/ceph/s3-tests.git
|
2023-11-09 05:03:47 +00:00
|
|
|
|
2021-12-31 21:07:49 +00:00
|
|
|
WORKDIR s3-tests
|
|
|
|
|
2023-11-09 05:03:47 +00:00
|
|
|
# Pin to a certain commit on ceph/s3-tests
|
|
|
|
# https://github.com/ceph/s3-tests/commit/9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
|
2021-12-31 21:07:49 +00:00
|
|
|
RUN git checkout 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
|
|
|
|
|
|
|
|
RUN ./bootstrap
|