{"id":50405971,"url":"https://github.com/dmptrluke/healthcheck","last_synced_at":"2026-05-31T01:31:00.017Z","repository":{"id":348230309,"uuid":"1197036202","full_name":"dmptrluke/healthcheck","owner":"dmptrluke","description":"Lightweight healthcheck binary for distroless containers","archived":false,"fork":false,"pushed_at":"2026-03-31T09:20:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T11:33:21.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmptrluke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T09:15:28.000Z","updated_at":"2026-03-31T09:19:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dmptrluke/healthcheck","commit_stats":null,"previous_names":["dmptrluke/healthcheck"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dmptrluke/healthcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmptrluke%2Fhealthcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmptrluke%2Fhealthcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmptrluke%2Fhealthcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmptrluke%2Fhealthcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmptrluke","download_url":"https://codeload.github.com/dmptrluke/healthcheck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmptrluke%2Fhealthcheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33716338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-31T01:30:56.203Z","updated_at":"2026-05-31T01:31:00.009Z","avatar_url":"https://github.com/dmptrluke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# healthcheck\n\nLightweight healthcheck binary for distroless Docker containers. ~2 MB static binary, no dependencies.\n\nTwo modes: HTTP endpoint checks and heartbeat file-age checks.\n\n## Usage\n\nCopy into your image from GHCR:\n\n```dockerfile\nCOPY --from=ghcr.io/dmptrluke/healthcheck:1 /healthcheck /usr/local/bin/healthcheck\n```\n\n### HTTP check\n\nChecks that an HTTP endpoint returns 200. Timeout is 4 seconds.\n\n```yaml\nhealthcheck:\n  test: [\"CMD\", \"healthcheck\", \"http\", \"127.0.0.1:8000\", \"/health/\"]\n  interval: 60s\n  timeout: 5s\n  retries: 3\n```\n\n### File-age check\n\nReads a unix timestamp from a file and checks it's within the given number of seconds. Useful for worker processes that write a heartbeat file.\n\n```yaml\nhealthcheck:\n  test: [\"CMD\", \"healthcheck\", \"file-age\", \"/tmp/heartbeat\", \"120\"]\n  interval: 30s\n  timeout: 5s\n  retries: 3\n```\n\nThe heartbeat file should contain a unix timestamp (integer or float), e.g. Python's `time.time()` or `date +%s`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmptrluke%2Fhealthcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmptrluke%2Fhealthcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmptrluke%2Fhealthcheck/lists"}