Ability to add file to a specific directory
See original GitHub issueDescription of the issue:
Some web apps require static files to be copied into resources’ static
directory. When adding arbitrary files to Jib, it can be more useful to be able to specify target directory.
Similar to the way that a JAR is constructed: https://github.com/oktadeveloper/okta-angular-deployment-example/blob/jar/notes-api/build.gradle.kts#L79
Current workaround is to copy the files into src/main/resources
, but these are generated files and shouldn’t go into src
. See https://github.com/oktadeveloper/okta-angular-deployment-example/blob/jar/notes-api/build.gradle.kts#L98
jib-gradle-plugin
Configuration:
See https://github.com/oktadeveloper/okta-angular-deployment-example/blob/jar/notes-api/build.gradle.kts#L98
Additional Information:
cc @mraible
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
I think this covers what you’re asking for: https://github.com/GoogleContainerTools/jib/issues/1581
tl;dr -
extraDirectories
will allow something similar to the following:maven:
gradle:
@saturnism @mraible Jib 2.3.0 is released with this very handy feature. Now you can designate target directories with
jib.extraDirectories.paths.path.into
. See https://github.com/GoogleContainerTools/jib/issues/1581#issuecomment-632393257 for an example.