Skip to content

infra: Add HEALTHCHECK to Windows Dockerfile #90

@YaronZaki

Description

@YaronZaki

Problem Statement

quantara/Dockerfile.windows is missing a HEALTHCHECK instruction. The standard quantara/Dockerfile:37 has a proper HEALTHCHECK, but the Windows variant was apparently copied from an earlier version and lacks this instruction.

Evidence

# quantara/Dockerfile:37 — has HEALTHCHECK
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
    CMD curl -f http://localhost:8000/health || exit 1

# quantara/Dockerfile.windows — no HEALTHCHECK at all

Impact

Low — monitoring gap on Windows. Windows container doesn't report health status. Container orchestration (Docker, Kubernetes) can't detect when the Windows container is unhealthy. Docker Compose depends_on: condition: service_healthy won't work for the Windows service.

Proposed Solution

Add identical HEALTHCHECK instruction to Dockerfile.windows. The Windows Dockerfile already installs curl (via apt-get), so the same curl-based health check command will work.

Acceptance Criteria

  • HEALTHCHECK instruction added to Dockerfile.windows matching Dockerfile
  • Same interval, timeout, retries, and start period as standard Dockerfile
  • Uses same curl -f http://localhost:8000/health command
  • Docker compose health check dependency works for Windows service

File Map

  • quantara/Dockerfile.windows — add HEALTHCHECK instruction

Testing Strategy

  • Integration: Build Windows Docker image, run container, verify docker ps shows healthy status after start period.

Security Considerations

No security impact. Parity improvement.

Definition of Done

  • Code implemented and peer-reviewed
  • Dockerfile verified
  • PR linked and merged

Labels: infrastructure
Priority: Low
Difficulty: Beginner
Estimated Effort: 0.5h

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions