fleet-memory/scripts
Chris Bartholomew ae80876671
fix: add procps to Docker image and smoke test to release workflow (#45)
* fix: add procps to Docker image and smoke test to release workflow

The Docker image was failing to start because pg0 uses `kill -0 <pid>`
to check if PostgreSQL is running, but the python:3.11-slim base image
doesn't include the `kill` command. Adding procps provides it.

This has been broken since release 0.1.6 when the fallback URI code was
removed to support dynamic ports. Without the kill command, pg0 couldn't
detect process status and returned None for the database URI.

Also adds smoke testing to the release workflow:
- Build image locally (single platform) and test before pushing
- Run container and wait for /health endpoint (up to 120s)
- Only push multi-platform release images if smoke test passes
- Each image (api-only, cp-only, standalone) tested independently

This prevents releasing broken Docker images to GHCR.

* refactor: extract smoke test into reusable script

Add scripts/docker-smoke-test.sh that can be run locally or in CI:
- Takes image name and optional target (cp-only vs api)
- Handles LLM credentials for API/standalone images
- Configurable timeout via SMOKE_TEST_TIMEOUT env var
- Colored output and clear error messages
- Proper cleanup on exit

Update release workflow to use the script instead of inline bash.
2025-12-17 22:01:53 +01:00
..
benchmarks many improvements 2025-11-26 18:22:25 +01:00
dev changelog generator 2025-12-15 14:46:14 +01:00
hooks less verbose git hooks 2025-12-16 13:49:38 +01:00
docker-smoke-test.sh fix: add procps to Docker image and smoke test to release workflow (#45) 2025-12-17 22:01:53 +01:00
generate-clients.sh fix node build 2025-12-05 01:21:30 +01:00
generate-openapi.sh fix: make sure openai provider works + docs updates (#23) 2025-12-10 16:10:10 +01:00
prometheus-dashboard.html chunks 2025-11-29 16:34:13 +01:00
release.sh litellm release integration 2025-12-15 10:48:27 +01:00
setup-hooks.sh feat: support for gemini-3-pro and gpt-5.2 (#30) 2025-12-16 11:00:27 +01:00
start-prometheus.sh chunks 2025-11-29 16:34:13 +01:00
sync-cookbook.sh bump pg0 0.11.x and improve documentation (#33) 2025-12-16 13:33:01 +01:00