vikunja/pkg/cmd
ScribblerCoder a5cc5e3783 Add healthcheck command (#2856)
Currently vikunja has a `/health` endpoint that was added in https://kolaente.dev/vikunja/vikunja/pulls/998. Docker/compose cannot utilize this feature since vikunja's docker image doesn't have curl/wget as it is pruned which is great for the image size. This PR adds a `healthcheck` command that send an http request to `/health` and exits with 0 or non-zero depending on the result.
It also adds a `HEALTHCHECK` to the docker image which calls this automatically.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2856
Reviewed-by: konrad <k@knt.li>
Co-authored-by: ScribblerCoder <omar2001.oh@gmail.com>
Co-committed-by: ScribblerCoder <omar2001.oh@gmail.com>
2024-11-20 18:04:55 +00:00
..
cmd.go fix: license in cmd help text 2024-04-13 20:13:24 +02:00
dump.go feat(cmd): Allow to specify custom filename for dump command (#2775) 2024-10-25 12:37:17 +00:00
healthcheck.go Add healthcheck command (#2856) 2024-11-20 18:04:55 +00:00
index.go feat(typesense): move partial reindex to a flag instead of a separate command 2024-06-05 10:49:37 +02:00
maintenance.go feat(cli): add cli command to delete orphan task positions 2024-10-31 19:19:56 +01:00
migrate.go chore(deps): update golangci/golangci-lint docker tag to v1.56.2 (#2099) 2024-03-10 13:47:19 +00:00
restore.go chore(deps): update golangci/golangci-lint docker tag to v1.56.2 (#2099) 2024-03-10 13:47:19 +00:00
testmail.go fix(cmd): report error when the connection to the mail server failed 2024-10-25 19:23:39 +02:00
user.go fix(deps): update golangci 2024-08-25 14:30:46 +00:00
version.go chore(deps): update golangci/golangci-lint docker tag to v1.56.2 (#2099) 2024-03-10 13:47:19 +00:00
web.go feat: auto tls 2024-09-29 18:20:30 +02:00