Lazarus

Lazarus DevOps Learning Plan

Purpose

Use the Lazarus quiz-creation API as a practical lab for learning modern DevOps practices. The goal is to build and operate a dependable service while comparing tools and approaches, rather than optimizing for the lowest-cost production design.

Application: Python/Flask API that turns training material into quiz questions. The project has previously run in a Docker container on Google Compute Engine.

Comparison notes

Use these criteria when comparing tools or approaches:

Project constraints and decisions

Current notes

Learning directions

Work through these directions as independent but connected tracks. The order below starts with a safe delivery path and adds operational depth as the service becomes more complex.

  1. CI/CD and release automation — highest priority

    • Add pull-request checks for formatting, static checks, and unit tests.
    • Build a container for each accepted change; tag images with an immutable commit identifier.
    • Add a deploy workflow with a reviewable staging step and a documented rollback.
    • Compare GitHub Actions with Jenkins on the same small pipeline; record setup effort, visibility, and maintenance tradeoffs.
  2. Observability — highest priority

    • Add structured application logs, request IDs, and useful error context.
    • Provide health and readiness endpoints; distinguish process health from dependency health.
    • Track request rate, error rate, and latency; add a simple dashboard and actionable alert.
    • Compare a lightweight Prometheus/Grafana setup with a hosted option such as Cloud Monitoring or Datadog.
  3. Failure testing and recovery — highest priority

    • Exercise expected failures: invalid input, slow requests, unavailable dependencies, full disk, and container restart.
    • Introduce controlled faults in a non-production environment and observe detection and recovery.
    • Document recovery steps, data-loss assumptions, and rollback behavior.
  4. Orchestration — highest priority

    • Start with Docker Compose for a repeatable local multi-service environment.
    • Deploy the API with a managed container platform or a small Kubernetes environment.
    • Compare health checks, scaling, service discovery, rollout behavior, and operational overhead.
    • Keep the simplest deployment that answers the learning question; avoid adding a cluster without a specific experiment.
  5. Infrastructure as code and cloud operations

    • Manage a small GCP or AWS environment with Terraform.
    • Practice state handling, variables, outputs, plans, drift detection, and teardown.
    • Compare an instance-based deployment with a managed container service; keep cloud credentials out of source control.
  6. Container and artifact lifecycle

    • Improve the Docker image with pinned dependencies, a small base image, a non-root user, and clear version labels.
    • Publish to a container registry and deploy a specific immutable image digest.
    • Measure image size and build time before and after improvements.
  7. Security and software supply chain

    • Add dependency and image vulnerability checks to CI.
    • Use least-privilege identities and short-lived credentials where supported.
    • Generate an SBOM and review how findings are triaged, fixed, and recorded.
    • Verify that secrets are not present in the repository, image, logs, or build output.
  8. Testing strategy and API reliability

    • Build a testing pyramid: unit tests, API/component tests, and a small end-to-end flow.
    • Validate API contracts, input limits, error responses, and compatibility.
    • Measure test feedback time and identify flaky or redundant checks.
    • Explore API versioning and rate limiting if the application grows beyond a single-user learning prototype.

Milestones

Status Milestone Completion evidence Date Completed
[x] LAZ-12 Establish a repeatable local baseline One documented command starts the app and its dependencies; current tests and known gaps are recorded. 11/28/2026
[x] LAZ-12 Add CI checks for every pull request CI runs code checks and tests; failures block merging; results are easy to inspect. 11/28/2026
[ ] Automate container build and publish A successful change creates an immutable, traceable image in a registry.
[ ] Deploy through a controlled staging workflow Staging deploy is automated, health-checked, and can be rolled back to a prior image.
[ ] Add useful observability Logs, health signals, a latency/error view, and at least one actionable alert are available.
[ ] Run failure and recovery experiments At least three documented fault scenarios have observed outcomes and recovery steps.
[ ] Compare orchestration approaches A Compose-based setup and one cloud/cluster deployment have been compared using recorded criteria.
[ ] Provision and tear down with Terraform Infrastructure can be planned, applied, inspected for drift, and safely removed from code.
[ ] Review security and supply-chain controls Dependency/image scanning, secret handling, and an SBOM workflow are documented.
[ ] Write a project operations guide A new contributor can run, deploy, inspect, troubleshoot, and roll back the service.

Experiment log

Copy this section for each experiment. Record what happened, including surprises and failed attempts.

Experiment: Template

11/28/2026 Restart Lazarus Project

Practiced running project locally in Python and from a Docker container.
Updated tools and created new Docker container.
Converted to uv tools.
Created smoke tests.
Setup CI pipeline check on pull request.