OpenFn / OpenFn/kit

Add a HEALTHCHECK to Docker image

Open
#842 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

Details

All docker deployments should have heath checks built in, right now we have to specify the health check via the compose file.

Eg:

    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2222"]
      interval: 30s
      timeout: 5s
      retries: 5
User acceptance criteria

Running the image without specifying the heath check should work automagically.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the Docker image build configuration and compare it with the healthcheck shown in the issue's compose example. The work is done when running the image without a separately specified healthcheck automatically performs the expected check against the service on port 2222.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, infrastructure
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.