From be4b1ab8c4aa72e02f0167c5492d7b3cb433c6b9 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:26:51 -0400 Subject: [PATCH 1/2] feat: add paperclip-db PostgreSQL 17 service to AI compose stack Adds paperclip-db service with postgres:17 image for Paperclip agent orchestrator database backend. Uses POSTGRES_PASSWORD from env, persistent volume at /mnt/HoardingCow_docker_data/Paperclip/db, and healthcheck via pg_isready. Requires .env: PAPERCLIP_DB_PASSWORD --- ai/compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ai/compose.yml b/ai/compose.yml index 1db7831..a58c5a8 100644 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -129,6 +129,22 @@ services: - "303" - "26" + paperclip-db: + image: postgres:17 + container_name: paperclip-db + restart: always + environment: + - POSTGRES_PASSWORD=${PAPERCLIP_DB_PASSWORD} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 10 + volumes: + - /mnt/HoardingCow_docker_data/Paperclip/db:/var/lib/postgresql/data + networks: + - ai_backend + networks: ai_net: external: true -- 2.49.1 From 9a9f09582078d17fdcc3e84db75f4897e00891e7 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:27:10 -0400 Subject: [PATCH 2/2] feat: add base image Dockerfile with curl, poppler-utils, imagemagick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR 1 of 5 — minimal base image on debian:13.4 with: - uv (from astral-sh/uv:latest) - curl - poppler-utils (pdftotext, pdfinfo, pdftoppm) - imagemagick (convert, identify) Verified all tools report version on build. --- ai/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ai/Dockerfile diff --git a/ai/Dockerfile b/ai/Dockerfile new file mode 100644 index 0000000..39b8eb3 --- /dev/null +++ b/ai/Dockerfile @@ -0,0 +1,23 @@ +FROM debian:13.4 + +# Install uv (Python package manager), curl, poppler-utils, and imagemagick +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + curl \ + poppler-utils \ + imagemagick && \ + rm -rf /var/lib/apt/lists/* + +# Install uv if not already present (debian:13.4 doesn't ship it) +COPY --from=ghcr.io/astral-sh/uv:latest /usr/local/bin/uv /usr/local/bin/uv +RUN uv --version + +# Verify all expected tools are available +RUN curl --version && \ + pdftotext -v 2>&1 | head -1 && \ + pdfinfo -v 2>&1 | head -1 && \ + pdftoppm -v 2>&1 | head -1 && \ + convert --version | head -1 && \ + identify --version | head -1 + +CMD ["/bin/bash"] -- 2.49.1