From 30a24a76c32579ca26da0a173d1aba8165684e81 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 27 Apr 2026 17:24:27 -0600 Subject: [PATCH] Use darkhttpd for log archive This is mainly because python's server doesn't easily let us correct MIME types, which prevents reading log files in-browser. This image is also far smaller. Signed-off-by: Zack Cerza --- ceph_devstack/config.toml | 2 +- ceph_devstack/resources/ceph/containers.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ceph_devstack/config.toml b/ceph_devstack/config.toml index 147a729e..2c2c08f7 100644 --- a/ceph_devstack/config.toml +++ b/ceph_devstack/config.toml @@ -1,7 +1,7 @@ data_dir = "~/.local/share/ceph-devstack" [containers.archive] -image = "python:alpine" +image = "docker.io/alpinelinux/darkhttpd:latest" [containers.beanstalk] image = "quay.io/ceph-infra/teuthology-beanstalkd:main" diff --git a/ceph_devstack/resources/ceph/containers.py b/ceph_devstack/resources/ceph/containers.py index ae8100bb..d1e4de9e 100644 --- a/ceph_devstack/resources/ceph/containers.py +++ b/ceph_devstack/resources/ceph/containers.py @@ -104,21 +104,21 @@ class Archive(Container): "podman", "container", "create", - "-i", "--network", "ceph-devstack", "-p", - "8000:8000", + "8000:8080", "-v", "{archive_dir}:/archive" + ARCHIVE_MOUNT_SUFFIX, "--name", "{name}", + "--entrypoint", + "darkhttpd", "{image}", - "python3", - "-m", - "http.server", - "-d", "/archive", + "--no-server-id", + "--default-mimetype", + "text/plain", ] @property