-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Have an <extraFiles> option to add individual files instead of a whole directory #3164
Comments
Thanks for the feedback! Yeah, unfortunately If you can't put it in <plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-extras</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/jib-extras</outputDirectory>
<resources>
<resource>
<directory>target/some-files</directory>
<includes>**/*.txt,**/*.rtf</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin> Then for the Jib configuration, <extraDirectories>
<paths>
<path>
<from>target/jib-extras</from>
<into>/dest-dir</into>
</path>
</paths>
</extraDirectories> I'm not saying that adding the But probably, instead of adding the new config <extraDirectories>
<paths>
<path>
<from>../folder1/</from>
<into>/app/contexts</into>
<includes>context1.xml</includes>
</path>
</paths>
</extraDirectories> That way, we can have the same effect of copying a single file without adding |
Thanks so much for the very helpful feedback as well as the priority insight. |
@tomikmar @labmonkey @andritch @daanschipper @cpvandehey @Nemesys @MiellyEllen We released Jib plugins 3.0 that implemented a inclusion/exclusion feature to |
Environment:
Description of the issue:
If this does not exist already, could there be an enhancement to add individual files into an image layer, rather than selecting all the files in a directory.
Expected behavior:
Additional Information: If this is not available, is there an expected version where this might be added?
The text was updated successfully, but these errors were encountered: