-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a `health-check` command to the CLI. You can call `rss-funnel health-check` to check if the server is running and healthy. The Docker image now also includes the `HEALTHCHECK CMD` directive. Internally it does a simple GET request to the `/_health` endpoint. Options: - `-s`/`--server`/`RSS_FUNNEL_HEALTH_CHECK_SERVER` - The server to check. Default: `http://127.0.0.1:4080`. Closes #128.
- Loading branch information
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM scratch | ||
COPY %RELEASE_BINARY% /rss-funnel | ||
ENTRYPOINT ["/rss-funnel"] | ||
EXPOSE 8080 | ||
HEALTHCHECK CMD ["/rss-funnel", "health-check"] | ||
CMD ["server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters