β

Jib:谷歌发布的可大大简化 Java App 容器化过程的开源工具

Harries Blog™ 94 阅读

Jib

Jib:谷歌发布的可大大简化 Java App 容器化过程的开源工具

What is Jib?

Jib build s Docker and OCI images for your Java appli cat ions and is available as plugin s for Maven and Gradle .

Maven : See documentation for jib- maven -plugin .

Gradle : See documentation for jib-gradle-plugin .

Jib as a container-building lib rary for Java is work-in-progress. Watch for update s.

Goals

  • Fast- Deploy your changes fast. Jib separates your application into mult ip le layers, splitting dependencies from classes. Now you don’t have to wait for Docker to rebuild your entire Java application – just deploy the layers that changed.

  • Reproducible- Rebuilding your container image with the same contents always generates the same image. Never trigger an unnecessary update again.

  • Daemonless- Reduce your CLI dependencies. Build your Docker image from within Maven or Gradle and push to any registry of your choice. No more writing Dockerfile s and calling docker build/push.

Quicks tar t

Maven

See documentation for using jib-maven-plugin .

Gradle

See documentation for using jib-gradle-plugin .

How Jib Works

Whereas traditionally a Java application is built as a single image layer with the application JAR, Jib’s build strategy separates the Java application into multiple layers for more granular incremental builds. When you change your code, only your changes are rebuilt, not your entire application. These layers, by default, are layered on top of a dist roless base image.

See also rules_docker for a similar existing container image build tool for the Bazel build system .

Frequently Asked Questions ( FAQ )

See the Frequently Asked Questions (FAQ) wiki page .

Community

原文

https ://github.com/ Google ContainerTools/jib

本站部分文章源于互联网,本着传播知识、有益学习和研究的目的进行的转载,为网友免费提供。如有著作权人或出版方提出异议,本站将立即删除。如果您对文章转载有任何疑问请告之我们,以便我们及时纠正。 PS:推荐一个微信公众号: ask Harries 或者qq群:474807195,里面会分享一些资深架构师录制的视频录像:有Spring,MyBatis,Netty源码分析,高并发、高性能、分布式、微服务架构的原理,JVM性能优化这些成为架构师必备的知识体系。还能领取免费的学习资源,目前受益良多

转载请注明原文出处: Harries Blog™ » Jib:谷歌发布的可大大简化 Java App 容器化过程的开源工具

作者:Harries Blog™
追心中的海,逐世界的梦

发表评论