vic / docker-layered-fatjar Goto Github PK
View Code? Open in Web Editor NEWCreate re-usable Docker layered images from java fat-jar apps.
License: Apache License 2.0
Create re-usable Docker layered images from java fat-jar apps.
License: Apache License 2.0
For example if people would like to copy resources from other image and combine with their layered java app.
Dont know if layered docker images are able to be copied from or they must be the final image.
Currently its hardcoded to google distroless JVM. but people will like want to change that.
Not sure if we always want to have resources expanded on the file system. Allow an option to create them as jars.
Given that we depend on nix.dockerTools.buildLayeredImage
we should provide a nix flake for easy integration on external proyects.
Not sure if applicable on this repo, but given that this was created to be used on scala projects, it would be nice to have a mill module that can build a layered image from an mill assembly jar.
Also provide example app.
Currently the script splits the fatjar searching for directories > 2M in size, with the assumption that big folders are not likely changing from release to release. Most of the time, they are metadata-resources or other libraries.
For example, on a big project we have this results (splitting by >2M) but it would be fine to let the use customize this limit.
support at least --help
and print errors if not given enought arguments.
Use unzip and zip to manipulate jar files.
Provide sections on README explaining how to convert a fat jar into a layered docker image.
It should be able to create a docker layered image. And run a java application from it.
The current prototype includes the jar content at the top level of the image file-system. Allow an option to indicate a directory where we want the layers to be expanded.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.