Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

ProGet Docker Stack - using HEALTHCHECK



  • Hi,

    I'm running ProGet as a container on my docker swarm using a Stack File. I have it all setup and running but would like to include the use of a docker HEALTHCHECK to ensure the application is running as normal.

    I'd like to use the /health API endpoint included with ProGet and documented here: https://docs.inedo.com/docs/proget/reference/api/health to query the

    "serviceStatus": "OK"
    

    attribute.

    Does anyone have any experience doing this? I'd love to do a Curl request and pipe the output of that into "jq" but it doesn't appear that "jq" is installed on the docker image. Do you know if there are any plans to change that?

    Alternatively is there any way to pass query parameters to the /health endpoint? For example:

    /health?serviceStatus
    

    And it just return "OK"

    I'm running ProGet V5.2.30

    Thanks

    Simon


  • inedo-engineer

    Sounds neat, we'd love to learn how you have it set-up! This is the first request for this, and like all feature requests, we want to make sure we can document it well.

    So I wonder, can you think of a way to improve our documentation with an example of your Stack File, and some mention how you're suing docker swarm to monitor things?

    Maybe as a subpage? Here's what we have now:
    https://docs.inedo.com/docs/proget/installation/installation-guide/linux-docker

    In any case, we are definitely open to collaborating with ways to improve not only our API, but our docs. Seems this might be a great way to work together?

    We honestly don't anything but basic knowledge on swarm / Stack Files, so if you could write how you set it up / monitor it, we will be happy to fix the code to work with the docs. I suspect changing the API to work as you requested would be infinitely easier for us than figuring out Docker swarm :)

    Also --- please note that we are now using proget.inedo.com instead DockerHub, it seems a lot of other vendors are doing the same, and it's easier for us to maintain our own build process (not possible on Dockerhub).


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation