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

Define Pebble healthchecks for Harbo component images which feature them. #13

Open
aznashwan opened this issue Jul 19, 2024 · 0 comments

Comments

@aznashwan
Copy link
Contributor

aznashwan commented Jul 19, 2024

Summary

Replicate HEALTHCHECK stanzas defined in the Dockerfiles of the various source images in the rockcraft specs.

$ grep -r HEALTHCHECK goharbor/make/photon                                                                                                      [14:19:12]
goharbor/make/photon/portal/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:8080 || curl -k --fail -s https://localhost:8443 || exit 1
goharbor/make/photon/core/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/v2.0/ping || curl -k --fail -s https://localhost:8443/api/v2.0/ping || exit 1
goharbor/make/photon/redis/Dockerfile:HEALTHCHECK CMD ["docker-healthcheck"]
goharbor/make/photon/jobservice/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/v1/stats || curl -sk --fail --key /etc/harbor/ssl/job_service.key --cert /etc/harbor/ssl/job_service.crt https://localhost:8443/api/v1/stats || exit 1
goharbor/make/photon/trivy-adapter/Dockerfile:HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl --fail -s http://localhost:8080/probe/healthy || curl -k --fail -s https://localhost:8443/probe/healthy || exit 1
goharbor/make/photon/nginx/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:8080 || exit 1
goharbor/make/photon/registry/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:5000 || curl -k --fail -s https://localhost:5443 || exit 1
goharbor/make/photon/db/Dockerfile:HEALTHCHECK CMD ["/docker-healthcheck.sh"]
goharbor/make/photon/log/Dockerfile:HEALTHCHECK CMD netstat -ltun|grep 10514
goharbor/make/photon/registryctl/Dockerfile:HEALTHCHECK CMD curl --fail -s http://localhost:8080/api/health || curl -sk --fail --key /etc/harbor/ssl/registryctl.key --cert /etc/harbor/ssl/registryctl.crt https://localhost:8443/api/health || exit 1

Are you interested in contributing to this feature?

Will do after initial implementation merges.

@aznashwan aznashwan changed the title Define Pebble healthchecks for Harbo component images which feature them, Define Pebble healthchecks for Harbo component images which feature them. Jul 19, 2024
This was referenced Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant