[PR #71] [MERGED] Add healthcheck #101

Closed
opened 2025-11-19 07:13:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/newt/pull/71
Author: @woutervanelten
Created: 6/25/2025
Status: Merged
Merged: 6/30/2025
Merged by: @oschwartz10612

Base: devHead: add-healthcheck


📝 Commits (7)

  • 678d82f added healthy check in main.go
  • a76e6c9 added healthy check in main.go
  • e357e7b Update main.go
  • 7002871 Update main.go
  • 9db3b78 Update main.go
  • 071a51a Update main.go
  • 0add2ec Merge branch 'add-healthcheck' of github.com:woutervanelten/newt into woutervanelten-add-healthcheck

📊 Changes

1 file changed (+19 additions, -2 deletions)

View changed files

📝 main.go (+19 -2)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Expanded the code to write a /tmp/healthy file if ping is successfull.
Removes the /tmp/healthy file if ping failes 3 times.

How to test?

add the following to docker-compose to have healthcheck.

healthcheck:
  test: ["CMD-SHELL", "test -f /tmp/healthy"]
  interval: 30s
  timeout: 10s
  retries: 3

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/newt/pull/71 **Author:** [@woutervanelten](https://github.com/woutervanelten) **Created:** 6/25/2025 **Status:** ✅ Merged **Merged:** 6/30/2025 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `add-healthcheck` --- ### 📝 Commits (7) - [`678d82f`](https://github.com/fosrl/newt/commit/678d82fa68068e18430c1c294a778c8ca026bf33) added healthy check in main.go - [`a76e6c9`](https://github.com/fosrl/newt/commit/a76e6c9637ddd28b169b2ca898ebe69abb53b7a9) added healthy check in main.go - [`e357e7b`](https://github.com/fosrl/newt/commit/e357e7befbc9eddfe09e694b1fedc02406504c90) Update main.go - [`7002871`](https://github.com/fosrl/newt/commit/700287163e8a86d01915d202ead49862ab8f023e) Update main.go - [`9db3b78`](https://github.com/fosrl/newt/commit/9db3b78373ed3991eeeadbb980cbf773648d239a) Update main.go - [`071a51a`](https://github.com/fosrl/newt/commit/071a51afbc26da00fd310155650195dcb0637ace) Update main.go - [`0add2ec`](https://github.com/fosrl/newt/commit/0add2ec6680083eae434664536fcf2d7e6067a19) Merge branch 'add-healthcheck' of github.com:woutervanelten/newt into woutervanelten-add-healthcheck ### 📊 Changes **1 file changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+19 -2) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description Expanded the code to write a /tmp/healthy file if ping is successfull. Removes the /tmp/healthy file if ping failes 3 times. ## How to test? add the following to docker-compose to have healthcheck. ``` healthcheck: test: ["CMD-SHELL", "test -f /tmp/healthy"] interval: 30s timeout: 10s retries: 3 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-19 07:13:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#101