$30 off During Our Annual Pro Sale. View Details »
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
80
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
150
hybrid-cloud-seminar.pdf
shihyuho
0
100
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
120
JCConf 2020 Observing in Microservices
shihyuho
0
800
iThome Kubernetes Summit 2018
shihyuho
0
71
JCConf 2016 zookeeper
shihyuho
0
66
Other Decks in Technology
See All in Technology
.NET 10 のパフォーマンス改善
nenonaninu
2
4.8k
AI時代の開発フローとともに気を付けたいこと
kkamegawa
0
800
pmconf2025 - 他社事例を"自社仕様化"する技術_iRAFT法
daichi_yamashita
0
640
小さな判断で育つ、大きな意思決定力 / 20251204 Takahiro Kinjo
shift_evolve
PRO
1
410
エンジニアリングマネージャー はじめての目標設定と評価
halkt
0
120
日本Rubyの会の構造と実行とあと何か / hokurikurk01
takahashim
4
740
“決まらない”NSM設計への処方箋 〜ビットキーにおける現実的な指標デザイン事例〜 / A Prescription for "Stuck" NSM Design: Bitkey’s Practical Case Study
bitkey
PRO
1
440
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
0
650
こがヘンだよ!Snowflake?サービス名称へのこだわり
tarotaro0129
0
110
AI 時代のデータ戦略
na0
8
3.3k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
原理から解き明かす AIと人間の成長 - Progate BAR
teba_eleven
2
300
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
76
5.2k
GraphQLとの向き合い方2022年版
quramy
50
14k
Faster Mobile Websites
deanohume
310
31k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
Why Our Code Smells
bkeepers
PRO
340
57k
Making Projects Easy
brettharned
120
6.5k
Visualization
eitanlees
150
16k
Site-Speed That Sticks
csswizardry
13
990
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Mobile First: as difficult as doing things right
swwweet
225
10k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
A better future with KSS
kneath
240
18k
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 🙌