radicle-search: Add search backend and httpd endpoints

This commit is contained in:
Georgios Jason Efstathiou
2026-07-13 10:53:17 +02:00
parent 8e2148599e
commit b201ddd501
79 changed files with 3705 additions and 929 deletions
+7 -13
View File
@@ -3,19 +3,13 @@ set -e
echo "🔨 Compiling local radicle-httpd..."
# Ensure radicle-httpd directory exists
if [ ! -d "radicle-httpd" ]; then
echo "❌ radicle-httpd directory not found"
exit 1
fi
# radicle-httpd lives in the Cargo workspace under crates/. Building the
# workspace member places the binary at the workspace-root target/, not under
# the crate directory.
cargo build -p radicle-httpd
# Compile radicle-httpd (debug build for faster compilation)
cd radicle-httpd
cargo build
cd ..
# Verify binary was created
if [ ! -f "radicle-httpd/target/debug/radicle-httpd" ]; then
BIN="target/debug/radicle-httpd"
if [ ! -f "$BIN" ]; then
echo "❌ Compilation failed - binary not found"
exit 1
fi
@@ -24,6 +18,6 @@ fi
mkdir -p tests/tmp/bin/httpd/local
# Copy binary to test location
cp radicle-httpd/target/debug/radicle-httpd tests/tmp/bin/httpd/local/radicle-httpd
cp "$BIN" tests/tmp/bin/httpd/local/radicle-httpd
echo "✅ Local radicle-httpd compiled and ready at tests/tmp/bin/httpd/local/radicle-httpd"
+1 -1
View File
@@ -13,7 +13,7 @@ cd /work
# The container runs as root, so anything it writes into the bind-mounted repo
# would otherwise be root-owned on the host. Hand those paths back to the
# invoking user (HOST_UID/HOST_GID set by scripts/test-e2e-docker) on exit.
# radicle-httpd/target lives in a named volume, so it's not host-visible.
# The workspace target/ lives in a named volume, so it's not host-visible.
cleanup() {
if [ -n "${HOST_UID:-}" ]; then
chown -R "$HOST_UID:${HOST_GID:-$HOST_UID}" \