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

whay jib is used for config-service #86

Closed
afattahi54 opened this issue Oct 30, 2023 · 2 comments
Closed

whay jib is used for config-service #86

afattahi54 opened this issue Oct 30, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@afattahi54
Copy link

The readme file mentioned that

we need ji for config-service since it contains curl

Can you describe it more please

@piomin
Copy link
Owner

piomin commented Nov 6, 2023

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.

@piomin piomin added the question Further information is requested label Nov 6, 2023
@afattahi54
Copy link
Author

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}}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants