Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
83
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
110
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
120
JCConf 2020 Observing in Microservices
shihyuho
0
800
iThome Kubernetes Summit 2018
shihyuho
0
72
JCConf 2016 zookeeper
shihyuho
0
67
Other Decks in Technology
See All in Technology
MariaDB Connector/C のcaching_sha2_passwordプラグインの仕様について
boro1234
0
1k
たまに起きる外部サービスの障害に備えたり備えなかったりする話
egmc
0
410
日本の AI 開発と世界の潮流 / GenAI Development in Japan
hariby
1
390
SREが取り組むデプロイ高速化 ─ Docker Buildを最適化した話
capytan
0
140
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
360
[Neurogica] 採用ポジション/ Recruitment Position
neurogica
1
120
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
760
Strands AgentsとNova 2 SonicでS2Sを実践してみた
yama3133
1
1.8k
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
2
240
普段使ってるClaude Skillsの紹介(by Notebooklm)
zerebom
8
2.1k
Next.js 16の新機能 Cache Components について
sutetotanuki
0
170
AgentCoreとStrandsで社内d払いナレッジボットを作った話
motojimayu
1
900
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
The Curse of the Amulet
leimatthew05
0
4.7k
The SEO Collaboration Effect
kristinabergwall1
0
310
Code Review Best Practice
trishagee
74
19k
We Have a Design System, Now What?
morganepeng
54
7.9k
The Curious Case for Waylosing
cassininazir
0
190
Side Projects
sachag
455
43k
Skip the Path - Find Your Career Trail
mkilby
0
27
WCS-LA-2024
lcolladotor
0
390
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
32
Statistics for Hackers
jakevdp
799
230k
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 🙌