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
100
0
Share
JCConf 2024 Jib
https://github.com/shihyuho/jcconf2024-jib
Shihyu Ho
September 26, 2024
More Decks by Shihyu Ho
See All by Shihyu Ho
JCConf 2022 - Using ArchUnit to test your architecture
shihyuho
0
170
hybrid-cloud-seminar.pdf
shihyuho
0
120
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
140
JCConf 2020 Observing in Microservices
shihyuho
0
870
iThome Kubernetes Summit 2018
shihyuho
0
75
JCConf 2016 zookeeper
shihyuho
0
83
Other Decks in Technology
See All in Technology
なぜ、私がCommunity Builderに?〜活動期間1か月半でも選出されたワケ〜
yama3133
0
110
オライリーイベント登壇資料「鉄リサイクル・産廃業界におけるAI技術実応用のカタチ」
takarasawa_
0
360
The 7 pitfalls of AI
ufried
0
200
CyberAgent YJC Connect
shimaf4979
1
170
React 19×Rustツール 進化の「ズレ」を設計で埋める
remrem0090
1
110
AIエージェントの支払い基盤 AgentCore Payments概要
kmiya84377
1
150
Agent Skillsで実現する記憶領域の運用とその後
yamadashy
2
1.6k
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (後半)
oracle4engineer
PRO
3
250
大学職員のための生成AI最前線 :最前線を、AIガバナンスとして読み直すためのTips
gmoriki
2
3.9k
マンション備え付けのネットワークとLTE回線を組み合わせた ネットワークの安定化の考案
harutiro
1
110
Forget technical debt
ufried
0
180
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
200
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
210
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Embracing the Ebb and Flow
colly
88
5k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
55k
Scaling GitHub
holman
464
140k
A Tale of Four Properties
chriscoyier
163
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
30 Presentation Tips
portentint
PRO
1
290
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Everyday Curiosity
cassininazir
0
200
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 🙌