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
Uh oh!
There was an error while loading. Please reload this page.
-
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_FILESdoesn't seems to have any effect (the image is successfully built)my-stuffis a directory under my project root directory (where pom.xml is located as well) - nowhere to findmy-stuffinside the OCI image builtmy-stuffis 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-SNAPSHOTto examine the content of the built image:it does seem that the builder "explode" the JAR into the
BOOT-INF/classesfolder (that's why there is nomy-app.jarfile) - but, how doesBP_INCLUDE_FILESwork? Please help!Beta Was this translation helpful? Give feedback.
All reactions