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
85
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
160
hybrid-cloud-seminar.pdf
shihyuho
0
110
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
130
JCConf 2020 Observing in Microservices
shihyuho
0
810
iThome Kubernetes Summit 2018
shihyuho
0
72
JCConf 2016 zookeeper
shihyuho
0
76
Other Decks in Technology
See All in Technology
KubeCon + CloudNativeCon NA ‘25 Recap, Extensibility: Gateway API / NRI
ladicle
0
110
OCI技術資料 : OS管理ハブ 概要
ocise
2
4.2k
習慣とAIと環境 — 技術探求を続ける3つの鍵
azukiazusa1
3
760
20260114_データ横丁 新年LT大会:2026年の抱負
taromatsui_cccmkhd
0
380
Proxmoxで作る自宅クラウド入門
koinunopochi
0
180
「AIでできますか?」から「Agentを作ってみました」へ ~「理論上わかる」と「やってみる」の隔たりを埋める方法
applism118
5
3.7k
人はいかにして 確率的な挙動を 受け入れていくのか
vaaaaanquish
4
2.5k
持続可能な開発のためのミニマリズム
sansantech
PRO
4
560
AWS Amplify Conference 2026 - 仕様からリリースまで一気通貫生成 AI 時代のフルスタック開発
inariku
3
380
ファシリテーション勉強中 その場に何が求められるかを考えるようになるまで / 20260123 Naoki Takahashi
shift_evolve
PRO
3
360
Lambda Durable FunctionsでStep Functionsの代わりはできるのかを試してみた
smt7174
2
140
AI開発をスケールさせるデータ中心の仕組みづくり
kzykmyzw
0
120
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
600
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
New Earth Scene 8
popppiees
1
1.4k
From π to Pie charts
rasagy
0
120
The Pragmatic Product Professional
lauravandoore
37
7.1k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
61
49k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.5k
Facilitating Awesome Meetings
lara
57
6.7k
Crafting Experiences
bethany
1
36
How to Talk to Developers About Accessibility
jct
1
110
Building the Perfect Custom Keyboard
takai
2
670
Unsuck your backbone
ammeep
671
58k
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 🙌