Product, order and inventory services behind Spring Cloud Gateway (WebMVC), configuration from a Config Server, discovery with Eureka, a Resilience4j circuit breaker on order -> inventory and Brave tracing. Run as six plain jars; output/ holds real transcripts (config, registry, requests, trace propagation, circuit breaker, startup race and the load-balanced RestClient.Builder trap). Dockerfile and docker-compose.yml are included but were not run. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HhW8LD8r3EigoBaCGrQZx5
7 lines
376 B
Docker
7 lines
376 B
Docker
# One Dockerfile for all six services: docker build --build-arg SERVICE=order-service -t shop/order-service .
|
|
# Build the jars first (mvn -DskipTests package). NOT RUN when this repository was written: the sandbox had no Docker.
|
|
FROM eclipse-temurin:21-jre
|
|
ARG SERVICE
|
|
COPY ${SERVICE}/target/${SERVICE}-1.0.0.jar /app.jar
|
|
ENTRYPOINT ["java", "-Xmx256m", "-jar", "/app.jar"]
|