diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-02-18 04:03:42 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2021-02-18 04:03:42 +0500 |
| commit | 127097cd2b34358cfdee4e595996b46dbfbd5682 (patch) | |
| tree | 5c85ee3b870404451abe0f194ddf3065f8b7ecaf /docker/Dockerfile.s3tests | |
| parent | 3f8b0da6772ea99b600303bb1ad3f6430a45290a (diff) | |
| download | seaweedfs-127097cd2b34358cfdee4e595996b46dbfbd5682.tar.xz seaweedfs-127097cd2b34358cfdee4e595996b46dbfbd5682.zip | |
ceph s3-tests include in the docker compose files
https://github.com/chrislusf/seaweedfs/issues/1810
Diffstat (limited to 'docker/Dockerfile.s3tests')
| -rw-r--r-- | docker/Dockerfile.s3tests | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docker/Dockerfile.s3tests b/docker/Dockerfile.s3tests new file mode 100644 index 000000000..18d57fad1 --- /dev/null +++ b/docker/Dockerfile.s3tests @@ -0,0 +1,31 @@ +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="" \ + S3TEST_CONF="/s3test.conf" + +ENTRYPOINT ["/bin/bash", "-c"] +CMD ["exec ./virtualenv/bin/nosetests ${NOSETESTS_OPTIONS-} ${NOSETESTS_ATTR:+-a $NOSETESTS_ATTR} ${NOSETESTS_EXCLUDE:+-e $NOSETESTS_EXCLUDE}"]
\ No newline at end of file |
