aboutsummaryrefslogtreecommitdiff
path: root/test/s3/compatibility/Dockerfile
diff options
context:
space:
mode:
authorvados <vados@vadosware.io>2023-11-09 14:03:47 +0900
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-08 23:16:40 -0800
commita1c6f1fbd68b64a4546ea00d1adf33ada95f024b (patch)
tree9776f7c4e856e4ae4a2bcc06ba63e4b26b6175fa /test/s3/compatibility/Dockerfile
parent5db82e594a711ca7b45f9ffb04b036e72df25c35 (diff)
downloadseaweedfs-a1c6f1fbd68b64a4546ea00d1adf33ada95f024b.tar.xz
seaweedfs-a1c6f1fbd68b64a4546ea00d1adf33ada95f024b.zip
chore(tests): update S3 compat tests
While present, the S3 compatibility tests were broken (at the very least when running on Linux) due to a few issues: - `ubuntu:latest` moving ahead of Python 3.6 - Docker networking not working as expected (host.docker.internal) This commit fixes the s3 compatibility tests, ensuring they run properly on linux, and updates the repository to contain some results. Signed-off-by: vados <vados@vadosware.io>
Diffstat (limited to 'test/s3/compatibility/Dockerfile')
-rw-r--r--test/s3/compatibility/Dockerfile16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/s3/compatibility/Dockerfile b/test/s3/compatibility/Dockerfile
index b2a1040cb..a3a76b742 100644
--- a/test/s3/compatibility/Dockerfile
+++ b/test/s3/compatibility/Dockerfile
@@ -1,11 +1,21 @@
# the tests only support python 3.6, not newer
-FROM ubuntu:latest
+#FROM ubuntu:latest
+FROM python:3.6.15-slim-buster
-RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git-core sudo tzdata
+# 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
RUN git clone https://github.com/ceph/s3-tests.git
+
WORKDIR s3-tests
-# we pin a certain commit
+# Pin to a certain commit on ceph/s3-tests
+# https://github.com/ceph/s3-tests/commit/9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
RUN git checkout 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
RUN ./bootstrap