Support extra classpath folders at runtime
See original GitHub issueCurrently, it is possible to:
- add files to the image both within the classpath (via resources folder) or the filesystem (via the jib folder).
- add files to the container via the use of volumes
- add files to the resources directory via volumes mounted inside
/app/resources
.
But it is not possible to add folders to the classpath directly.
For example, I have an image built with jib and a folder named config
on the host containing a logback.xml
file, there is no way to add the whole config
directory as a classpath entry, I have to mount each file one by one into /app/resources
.
I’m not sure how to solve this though…
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:17 (10 by maintainers)
Top Results From Across the Web
How do I specify an extra folder to be on the classpath for ...
This folder contains (at least right now) only one properties file in use by the application, and is on the classpath for the...
Read more >Setting the class path
The class path is the path that the Java runtime environment searches for classes and other resource files. The class search path (more...
Read more >How to add Resources Folder, Properties at Runtime into ...
How to add Resources Folder, Properties at Runtime into IntelliJ classpath? Adding Property files to Classpath ; Step-2. Click on File ; Step-3....
Read more >Add Multiple Jars to Spark Submit Classpath?
When submitting Spark or PySpark application using spark-submit, we often need to include multiple third-party jars in classpath, Spark supports multiple.
Read more >The Executable Jar Format - Spring
Spring Boot Loader-compatible jar and war archives can include additional index files under the BOOT-INF/ directory. A classpath.idx file can be provided ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@victornoel @kurczynski @tellisnz-shift version 1.2.0 has been released with the
<container><extraClasspath>
/jib.container.extraClasspath
configuration parameter!@briandealwis thanks 😃