question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support extra classpath folders at runtime

See original GitHub issue

Currently, 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
TadCordlecommented, May 8, 2019

@victornoel @kurczynski @tellisnz-shift version 1.2.0 has been released with the <container><extraClasspath> / jib.container.extraClasspath configuration parameter!

0reactions
victornoelcommented, May 6, 2019

@briandealwis thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found