mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #716] [MERGED] feat: distroless container additional variant + healthcheck command #660
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/716
Author: @ItalyPaleAle
Created: 7/4/2025
Status: ✅ Merged
Merged: 7/4/2025
Merged by: @ItalyPaleAle
Base:
main← Head:distroless-container📝 Commits (1)
accd1aafeat: distroless container additional variant + healthcheck command📊 Changes
9 files changed (+157 additions, -19 deletions)
View changed files
📝
.github/workflows/build-next.yml(+15 -1)📝
.github/workflows/release.yml(+26 -8)📝
Dockerfile(+2 -0)➕
Dockerfile-distroless(+18 -0)📝
Dockerfile-prebuilt(+3 -1)📝
backend/internal/bootstrap/bootstrap.go(+1 -5)➕
backend/internal/cmds/healthcheck.go(+83 -0)📝
backend/internal/cmds/root.go(+7 -2)📝
docker-compose.yml(+2 -2)📄 Description
Fix #680
Adds a
-distrolessvariant for the container image, which is based ongcr.io/distroless/static-debian12:nonrootBecause the distroless image doesn't have curl, in order to perform healthchecks I have added a new sub-command to the pocket-id binary
pocket-id healthcheck, which performs a healthcheck on a running instance of Pocket ID. This is a simpler alternative to shipping the curl binary. (Note that curl is still bundled in the non-distroless image, for backwards compatibility)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.