You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've successfully built and run the Kubernetes "flavor" of the Spring Pet Clinic Microservices project. I'd like to add a 3rd party JAR file to the output image, but I am failing to see where I can the directives to download the desired Java Agent .jar file and modify the default ENTRYPOINT directive to add the -javaagent flag to the ENTRYPOINT.
After reviewing the parent pom.xml and researching the spring-boot-maven-plugin docs, it appears that all I would need to do would be to modify the Dockerfile that's the basis for each service's Docker image, but it doesn't appear that a Dockerfile is used when this command is invoked:
Based on how I understand the project is designed, the Dockerfile located at <project root path>/docker/Dockerfile is only used when this command is executed:
./mvnw clean install -P buildDocker
I think I'm losing the trail of breadcrumbs to understand how all the pieces fit together. Any guidance on where I can define my additional requirements of adding an additional .jar file to the output image and modify the ENTRYPOINT directive in that image would be greatly appreciated.
I have been able to discover a means to download and place the Java Agent .jar file into a specific module's target path with the following addition to the module's pom.xml. This case, I added to the spring-petclinic-customers-service module with the following xml snippet:
I feel like this might be part of the overall solution, but I am not sure how this would be copied into the image, nor how to modify the ENTRYPOINT command.
The text was updated successfully, but these errors were encountered:
Hi @LoPan455
It looks like your question is related to the https://github.com/spring-petclinic/spring-petclinic-cloud/ project and not this spring-petclinic-microservice project that does not provide k8s support. If you confirm, I propose you copy your question in a new issue
Regards
I've successfully built and run the Kubernetes "flavor" of the Spring Pet Clinic Microservices project. I'd like to add a 3rd party JAR file to the output image, but I am failing to see where I can the directives to download the desired Java Agent
.jar
file and modify the defaultENTRYPOINT
directive to add the-javaagent
flag to theENTRYPOINT
.After reviewing the parent
pom.xml
and researching thespring-boot-maven-plugin
docs, it appears that all I would need to do would be to modify the Dockerfile that's the basis for each service's Docker image, but it doesn't appear that a Dockerfile is used when this command is invoked:Based on how I understand the project is designed, the Dockerfile located at
<project root path>/docker/Dockerfile
is only used when this command is executed:I think I'm losing the trail of breadcrumbs to understand how all the pieces fit together. Any guidance on where I can define my additional requirements of adding an additional
.jar
file to the output image and modify theENTRYPOINT
directive in that image would be greatly appreciated.I have been able to discover a means to download and place the Java Agent
.jar
file into a specific module'starget
path with the following addition to the module'spom.xml
. This case, I added to thespring-petclinic-customers-service
module with the following xml snippet:I feel like this might be part of the overall solution, but I am not sure how this would be copied into the image, nor how to modify the
ENTRYPOINT
command.The text was updated successfully, but these errors were encountered: