Files
SpecterOps-Nemesis/infra/docker/python_base/dev.Dockerfile
T
Lee Chagolla-Christensen 5d7b9bb31d Centralized workflow purging/tracking, perf improvements
Infrastructure:
- Enable pg_stat_statements extension for query monitoring
- Increase Postgres max connections and shared buffers
- Bump RabbitMQ prefetchCount to 100
- Add curl/netstat/htop to dev Docker image

Database:
- Add indexes for findings and workflows
- Add workflow status constraint and is_purged column
- Index workflows by object_id for active workflows

Workflow tracking:
- Add WorkflowStatus enum
- Added finalize_workflow activity
- Generate instance IDs with name prefix pattern
  (<name>.<instance>.<object_id>)

Workflow purging:
- Create WorkflowPurger to purge Dapr workflow data (kills perf over
  time)
- added to file_enrichment/document_conversion
- New workflows column to track purge workflows

File linking:
- Optimize upserts to single query (perf)

Configuration:
- PII info in env.example
2025-11-08 16:08:11 -08:00

11 lines
394 B
Docker

# This is the development image for python projects
# It is a slim image with dev tools/programs installed
FROM python:3.12.3-slim
RUN apt-get update && \
apt-get install --no-install-suggests --no-install-recommends --yes \
pipx wget curl procps net-tools htop
ENV PATH="/root/.local/bin:${PATH}"
RUN pipx install poetry==2.0.1
RUN pipx inject poetry poetry-plugin-bundle
WORKDIR /src