Skip to content

Add deployment-ready structure: Dockerfile, health command, env config, and updated README - #3

Merged
CoreyLeath-code merged 2 commits into
mainfrom
copilot/add-deployment-ready-structure
Apr 11, 2026
Merged

CoreyLeath-code merged 2 commits into
mainfrom
copilot/add-deployment-ready-structure

Conversation

Copilot AI commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor

The repo lacked the scaffolding needed for containerized deployment, startup verification, and environment configuration.

New files

  • Dockerfile — Multi-stage build (builder compiles wheel → python:3.11-slim runtime). Runs as non-root logsight user.
  • .dockerignore — Excludes caches, virtualenvs, .git, CI, and docs from build context.
  • .env.example — Documents LOGSIGHT_THRESHOLD, LOGSIGHT_WINDOW, LOGSIGHT_SPIKE_THRESHOLD with safe defaults.
  • Procfile — Cloud worker entry point: logsight analyze ${LOGSIGHT_LOG_FILE:-/dev/stdin}.

CLI addition

Added logsight health — startup verification command that parses a sample log line, runs anomaly detection, and prints version + status:

$ logsight health
✓ LogSight-AI is healthy.
  version : 0.1.0
  parsed  : INFO — health check
  anomaly : False

Tests

tests/test_cli.py covers the health command (exit code, presence of "healthy" and "version" in output).

README

Replaced the broken "How to Run" section with actionable steps for local install, CLI usage, environment variable table, Docker build/run, and testing.

…le, Procfile, health command, README, and CLI tests

Agent-Logs-Url: https://github.com/Trojan3877/LogSight-AI/sessions/33445def-4197-4978-8995-c81f948f85fa

Co-authored-by: Trojan3877 <182694928+Trojan3877@users.noreply.github.com>
Copilot AI changed the title [WIP] Add deployment-ready structure with environment handling Add deployment-ready structure: Dockerfile, health command, env config, and updated README Apr 11, 2026
Copilot AI requested a review from CoreyLeath-code April 11, 2026 17:56
@CoreyLeath-code
CoreyLeath-code marked this pull request as ready for review April 11, 2026 17:56
@CoreyLeath-code
CoreyLeath-code merged commit 1fbd709 into main Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants