feat(doos): add container runtime, audit cases, example demo and tests

- New rootless doos container runtime: sandbox, cgroup, network, images, hardening, davmount, CLI plus molo integration
- 18 CVE audit reproductions with READMEs and Makefiles
- Example DoosDemo routes, IndexCatalog, static assets, spec update
- CLI serve on 0.0.0.0:8000, arg parser, dev server improvements
- Runtime HTTP fixes, supervisor isolation backend
- Tests for doos, example doos routes, CLI serve; suite count 261 to 265
This commit is contained in:
2026-11-06 04:36:00 +01:00
parent a2a737e21d
commit 0595284fe3
170 changed files with 12212 additions and 145 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
// Scratch DOOS_HOME for the /doos route tests: a unique dir under the system
// temp root (the example suite points TMPDIR at build/example/tmp), exported
// before the Fixture builds the app, removed on teardown.
#include <unistd.h>
#include <cstdlib>
#include <filesystem>
namespace molo::example::test {
struct ScratchDoosHome {
std::filesystem::path dir;
explicit ScratchDoosHome(const std::string& tag) {
static int seq = 0;
dir = std::filesystem::temp_directory_path() /
("molo-doos-route-" + tag + "-" + std::to_string(::getpid()) + "-" +
std::to_string(seq++));
std::error_code ec;
std::filesystem::remove_all(dir, ec);
std::filesystem::create_directories(dir, ec);
::setenv("DOOS_HOME", dir.c_str(), 1);
}
~ScratchDoosHome() {
std::error_code ec;
std::filesystem::remove_all(dir, ec);
}
};
} // namespace molo::example::test