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
96
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
140
JCConf 2020 Observing in Microservices
shihyuho
0
840
iThome Kubernetes Summit 2018
shihyuho
0
75
JCConf 2016 zookeeper
shihyuho
0
81
Other Decks in Technology
See All in Technology
The essence of decision-making lies in primary data
kaminashi
0
110
Phase03_ドキュメント管理
overflowinc
0
2.8k
君はジョシュアツリーを知っているか?名前をつけて事象を正しく認識しよう / Do you know Joshua Tree?
ykanoh
4
130
AgentCoreとLINEを使った飲食店おすすめアプリを作ってみた
yakumo
2
260
AI時代のオンプレ-クラウドキャリアチェンジ考
yuu0w0yuu
0
240
SSoT(Single Source of Truth)で「壊して再生」する設計
kawauso
2
380
Phase09_自動化_仕組み化
overflowinc
0
1.9k
「AIエージェントで変わる開発プロセス―レビューボトルネックからの脱却」
lycorptech_jp
PRO
0
150
Why we keep our community?
kawaguti
PRO
0
300
Zephyr(RTOS)でOpenPLCを実装してみた
iotengineer22
0
120
Phase12_総括_自走化
overflowinc
0
1.6k
GitHub Copilot CLI で Azure Portal to Bicep
tsubakimoto_s
0
260
Featured
See All Featured
Done Done
chrislema
186
16k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
300
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Become a Pro
speakerdeck
PRO
31
5.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
980
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
390
Balancing Empowerment & Direction
lara
5
990
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
690
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
230
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 🙌