Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JCConf 2024 Jib
Search
Shihyu Ho
September 26, 2024
Technology
0
71
JCConf 2024 Jib
https://github.com/shihyuho/jcconf2024-jib
Shihyu Ho
September 26, 2024
Tweet
Share
More Decks by Shihyu Ho
See All by Shihyu Ho
JCConf 2022 - Using ArchUnit to test your architecture
shihyuho
0
140
hybrid-cloud-seminar.pdf
shihyuho
0
100
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
120
JCConf 2020 Observing in Microservices
shihyuho
0
770
iThome Kubernetes Summit 2018
shihyuho
0
68
JCConf 2016 zookeeper
shihyuho
0
64
Other Decks in Technology
See All in Technology
企業の生成AIガバナンスにおけるエージェントとセキュリティ
lycorptech_jp
PRO
2
200
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1.2k
DroidKaigi 2025 Androidエンジニアとしてのキャリア
mhidaka
2
390
COVESA VSSによる車両データモデルの標準化とAWS IoT FleetWiseの活用
osawa
1
400
Oracle Cloud Infrastructure IaaS 新機能アップデート 2025/06 - 2025/08
oracle4engineer
PRO
0
110
「全員プロダクトマネージャー」を実現する、Cursorによる仕様検討の自動運転
applism118
22
12k
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
1.1k
Unlocking the Power of AI Agents with LINE Bot MCP Server
linedevth
0
120
データ分析エージェント Socrates の育て方
na0
7
2.7k
メルカリIBISの紹介
0gm
0
370
今日から始めるAWSセキュリティ対策 3ステップでわかる実践ガイド
yoshidatakeshi1994
0
120
Django's GeneratedField by example - DjangoCon US 2025
pauloxnet
0
160
Featured
See All Featured
Fireside Chat
paigeccino
39
3.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.6k
Become a Pro
speakerdeck
PRO
29
5.5k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
850
Transcript
Jib 打包 Java 應 用 的那些事 心 得分享與擴充攻略 Matt Ho
Hi, I'm Matt 👋 - 松凌科技 Architect / R&D -
JCConf Speaker - in/methodho - github.com/shihyuho
Lab github.com/shihyuho/jcconf2024-jib
今天講什麼?
Image 裡有什麼
Fat Jar
Fat Jar - Dockerfile
Fat Jar - Layers
Jib
Jib - Layers
喜歡 Jib 的原因 1. Daemonless 2. No more Dockerfiles 3.
Well integrated with build tools (Maven/Gradle) 4. Optimized for improved layer caching 5. Extensible (等等~ 這啥?)
有時候我們會需要 自 定義 entrypoint
原來是 Jib 忽略了 <jvmFlags>
Jib 的擴充 softleader/jib-jvm-flags-extension-maven A Jib maven extension outputs the configured
<jvmFlags> into the /app/jib-jvm-flags-file file, allowing a custom entrypoint to access these flags.
Jib 怎麼擴充
多了 一 個 Layer
現在的 entrypoint 長這樣
更多的應 用 softleader/memory-calculator 基於 paketo-buildpacks/libjvm 的 JVM 記憶體計算 工 具
Recap - Image 的組成 - 打包成 Image 的幾種 方 式
- 喜歡 Jib 的原因 - Jib 的擴充及延伸應 用
Thank you 🙌