Closed kamorozov closed 1 year ago
Hello @kamorozov,
This project now uses Cloud Native Buildpacks provided by Spring Boot to build a distroless image which is much more secure than the previous images this project previously provided. It's not possible AFAIK to add packages. I'm not sure of your use case that requires the healthcheck to be checked inside the same container. It should be very straightforward to add another container with curl to check the healthcheck since it's a url that can be called from another container. You wouldn't even need to publicly expose the healthcheck to do this. However, if you must, you could look through the history and find the Dockerfiles this project used to use to build the project, fork this project and use them to build custom images for yourself
EDIT: Perhaps I misread your issue, and you are trying to use the healthcheck feature of Docker Compose. This is unnecessary for this image. Spring Cloud Config Server is already integrated with it's own internal healthcheck and will not run the container in an unhealthy state. The answer remains the same as we cannot support this feature
Hi!
I want to add health check for docker container, but container doesn't have
curl
and I don't know how to add.My implementation:
Dockerfile:
docker-compose: