A Spring Boot Rest Service with four endpoints.
219
https://github.com/kunupat/foo
bar.service.base.url and external.service.url properties can be overridden using Docker environment variables. E.g. (default values shown for below properties):
bar.service.base.url=http://localhost:8081external.service.url=http://dummy.restapiexample.com/api/v1/employeesE.g. sudo docker run -m 0.25g -p 8080:8080 -e bar.service.base.url=[bar-service-base-url] -e external.service.url=[external-service-url] --rm -d --name foo.service.api kunupat/foo
/data : Calls bar service endpoint: /data/static: Responds with a static message/external: Calls an external service/actuator/health : A health check endpointport: 8080http://localhost:8080/datahttp://localhost:8080/statichttp://localhost:8080/externalhttp://localhost:8080/actuator/health
JAEGER_SERVICE_NAME=foo
JAEGER_SAMPLER_TYPE=const
JAEGER_SAMPLER_PARAM=1
JAEGER_REPORTER_LOG_SPANS=true
JAEGER_ENDPOINT=http://{Your_Jaeger_Server}:14268/api/traces
Content type
Image
Digest
Size
251 MB
Last updated
almost 7 years ago
docker pull kunupat/foo