GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.68k stars 1.44k forks source link

Able to specify archive URL (tar, zip, tar.gz, ...) for extraDirectories #1877

Open chanseokoh opened 5 years ago

chanseokoh commented 5 years ago

This has been brought up a few times, and recently, I wished I could specify an archive URL for extraDirectories when I tried migrating microservices-demo to use Jib. Optionally being able to specify a checksum as gradle-download-task does.

However, probably extraDirectories will need #1581 to be able to specify an unpack destination for this to be useful. Also, I realized often you want some filtering to be able to selectively copy only what you want.

That brings us back into our previous debates where Jib wants to implement functionalities (i.e., re-invent the wheel) that are already well supported by Gradle or other popular plugins (e.g., downloading/copying/unpacking resources into extraDirectories).

tandeday commented 5 years ago

I think this is outside the scope of this plugin. Instead let this happen elsewhere in the maven build, requiring the programmer to specify extracting the contents under target/ and then let jib include that instead.

raizoor commented 4 years ago

I think it will be usefull. This weekend e need simular issue than you @chanseokoh .. But I don't know how many job time and changes will be necessary.

fragaLY commented 1 year ago

It really would be a nice feature.