Skip to content

feat: action-container-smoke-tester (Language Agnostic) #27

@DerekRoberts

Description

@DerekRoberts

Summary

Every BCGov repository currently hand-cranks its own container healthcheck loop using a raw Bash for loop and curl. This is boilerplate-heavy, brittle, and lacks standardized failure telemetry.

The Proposal

We should build bcgov/action-container-smoke-tester as a core, language-agnostic utility in the consolidated re-launch.

Why Container Smoker?

  1. Language Agnostic: It only cares about the OCI image, not what is running inside.
  2. Boilerplate Reduction: Replaces 30+ lines of raw Bash with a single, stable action call.
  3. Standardized Telemetry: Automatically dumps logs, container state, and health diagnosis on failure.

Example V2 Usage:

- uses: bcgov/actions/container-smoke-tester@v1
  with:
    image: ghcr.io/bcgov/my-app:latest
    port: 8080
    endpoint: /health
    timeout: 60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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