Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docker healthchecks to the docker images #1027

Closed
wants to merge 13 commits into from
Closed

add docker healthchecks to the docker images #1027

wants to merge 13 commits into from

Conversation

Zoey2936
Copy link
Collaborator

Added Docker Health checks to some containers.
clamav container already includes this.
And for the watchtower & borgbackup container I don't know how this could be done, and I think, because they only run for a short time, it wouldn't make much sense to add this check to them.
In my test (I connected using bash, for example: docker exec -it nextcloud-aio-collabora bash, the executed the health check commands and then checked with echo $?) all checks reported Exit Code 0.

@szaimen
Copy link
Collaborator

szaimen commented Aug 18, 2022

@Z0ey2022 Thanks for the PR! I'll have a look soon!

@szaimen
Copy link
Collaborator

szaimen commented Aug 18, 2022

Short question: why do you/we need these health checks?

@Zoey2936
Copy link
Collaborator Author

Zoey2936 commented Aug 18, 2022

Short question: why do you/we need these health checks?

I don't need them directly, but I like it when I see that my containers report not only that they are running, but also show that they are healthy, so that I could see if the service inside the container is stopped or crashed or something like this
grafik
grafik

Maybe the mastercontainer could also check the status of the container from the docker socket and show the status also inside the aio panel or do something else with this information, but I don't know if this could work or how this could be implemented

@szaimen szaimen added 3. to review Waiting for reviews enhancement New feature or request labels Aug 22, 2022
@szaimen szaimen added this to the next milestone Aug 22, 2022
@Zoey2936 Zoey2936 marked this pull request as draft August 24, 2022 19:05
@Zoey2936
Copy link
Collaborator Author

I will wait for #1044 to be merged, so I can directly add a Healthcheck for elastic search

@Zoey2936 Zoey2936 added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 25, 2022
@Zoey2936 Zoey2936 marked this pull request as ready for review August 25, 2022 11:38
@Zoey2936 Zoey2936 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 25, 2022
Copy link
Collaborator

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM in general!
Just a few questions/regards.

@@ -2,3 +2,5 @@
FROM elasticsearch:7.17.6

RUN elasticsearch-plugin install --batch ingest-attachment

HEALTHCHECK CMD curl -skfI localhost:9200 || exit 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grafik
I think it is needed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange! Seems like you are right.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grafik
I think the reason is this if condition

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this back?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Zoey <[email protected]>
@szaimen
Copy link
Collaborator

szaimen commented Aug 25, 2022

LGTM now! Please rebase on top of master and squash your changes. Afterwards I'll merge!

@Zoey2936
Copy link
Collaborator Author

LGTM now! Please rebase on top of master and squash your changes. Afterwards I'll merge!

Sorry, but I don't get them rebased, should I create a new PR with these changes?

@szaimen
Copy link
Collaborator

szaimen commented Aug 25, 2022

Sorry, but I don't get them rebased, should I create a new PR with these changes?

Fine by me if that is easier for you 👍

@Zoey2936 Zoey2936 closed this Aug 25, 2022
@szaimen szaimen removed this from the next milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants