Comments (2)
In the docker-compose.yml
I have the following entry with a health check verification:
config-service:
image: piomin/config-service:1.1-SNAPSHOT
ports:
- "8088:8088"
healthcheck:
test: curl --fail http://localhost:8088/employee/docker || exit 1
interval: 5s
timeout: 2s
retries: 3
I need it to first verify that config-server
container is running, before I'll start another containers. Tha't why I need curl inside that container. For example, Paketo Buildpacks Java images don't have curl installed.
from sample-spring-microservices-new.
Thanks, just a comment
When I run curl http://127.0.0.1:8088/employee/docker
I get :
{"name":"employee","profiles":["docker"],"label":null,"version":null,"state":null,"propertySources":[]}
This shows that the server is up and running. But, is it better to use some thing like curl http://127.0.0.1:8088/employee-service/docker
, which returns better results:
{"name":"employee-service","profiles":["docker"],"label":null,"version":null,"state":null,"propertySources":[{"name":"classpath:/config/employee-service-docker.yml","source":{"server.port":8080,"eureka.client.serviceUrl.defaultZone":"http://discovery-service:8061/eureka/","eureka.instance.hostname":"employee-service","logging.pattern.console":"%d{yyyy-MM-dd HH:mm:ss} [%X{traceId:-},%X{spanId:-}] ${LOG_LEVEL_PATTERN:-%5p} %m%n","springdoc.packagesToScan":"pl.piomin.services.employee","spring.output.ansi.enabled":"always","management.tracing.sampling.probability":1.0,"management.zipkin.tracing.endpoint":"http://zipkin:9411/api/v2/spans"}},{"name":"classpath:/config/employee-service.yml","source":{"server.port":0,"eureka.client.serviceUrl.defaultZone":"http://localhost:8061/eureka/","logging.pattern.console":"%d{yyyy-MM-dd HH:mm:ss} [%X{traceId:-},%X{spanId:-}] ${LOG_LEVEL_PATTERN:-%5p} %m%n","springdoc.packagesToScan":"pl.piomin.services.employee","spring.output.ansi.enabled":"always","management.tracing.sampling.probability":1.0}}]}
from sample-spring-microservices-new.
Related Issues (20)
- Caused by: java.lang.IllegalStateException: You need to configure a uri for the git repository HOT 2
- Unable to access the Swagger Endpoints HOT 1
- Could you please upgrade project to use Spring Boot version 2.1.1.RELEASE? HOT 2
- Is this correct that both gateway-service.yml and proxy-service.yml using same port 8060 ? HOT 8
- DiscoveryClient_EMPLOYEE-SERVICE/localhost:employee-service:9090 - registration failed Cannot execute request on any known server HOT 1
- Code giving error when I updated code to Spring Boot version 2.1.2.RELEASE HOT 4
- Could you please provide Dockerfile for the services? HOT 1
- Error in deplying openshift branch in cloud. HOT 1
- Offline, No GUI, OpenJDK18 image, Bundle? HOT 1
- Could you please upgrade dependencies to latest? HOT 1
- springboot microservices gatewayservice routing issue HOT 1
- This code doesn't work with Spring Boot 2.7.x HOT 1
- Dependency Dashboard
- https://stackoverflow.com/questions/51908605/spring-microservices-caused-by-java-lang-classnotfoundexception-org-springfr HOT 2
- No plugin found for prefix 'jib' in the current project ! HOT 2
- Caused by: java.lang.ClassNotFoundException: org.springframework.expression.spel.support.SimpleEvaluationContext HOT 2
- Caused by: java.lang.IllegalStateException: You need to configure a uri for the git repository HOT 2
- Traces are not correctly spanning into multiple services
- Expecting more article HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sample-spring-microservices-new.