Replies: 1 comment
-
Off the top of my head, what you're trying looks OK. Nothing is jumping out. My first suggestion would be to try the same thing but using https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/ This will help to rule out issues with the plugin or Maven. If you could also run your build, capture the output and post the full output that will help understanding what is happening. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the simple Maven pom.xml config above, I'm using the spring-boot-maven-plugin to build my OCI image. Now, I want to include some extra folders/files under my project directory, and for the experiments I tried,
BP_INCLUDE_FILES
doesn't seems to have any effect (the image is successfully built)my-stuff
is a directory under my project root directory (where pom.xml is located as well) - nowhere to findmy-stuff
inside the OCI image builtmy-stuff
is a directory undersrc/main/resources
- I tried both<BP_INCLUDE_FILES>my-stuff/*</BP_INCLUDE_FILES>
and<BP_INCLUDE_FILES>src/main/resources/my-stuff/*</BP_INCLUDE_FILES>
with no avail.Using the command
docker run --rm -it --entrypoint /bin/bash my-app-image:0.0.1-SNAPSHOT
to examine the content of the built image:it does seem that the builder "explode" the JAR into the
BOOT-INF/classes
folder (that's why there is nomy-app.jar
file) - but, how doesBP_INCLUDE_FILES
work? Please help!Beta Was this translation helpful? Give feedback.
All reactions