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
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
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
67
Other Decks in Technology
See All in Technology
AgentCoreとStrandsで社内d払いナレッジボットを作った話
motojimayu
1
990
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
130
テストセンター受験、オンライン受験、どっちなんだい?
yama3133
0
180
Snowflake Industry Days 2025 Nowcast
takumimukaiyama
0
130
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
150
2025年の医用画像AI/AI×medical_imaging_in_2025_generated_by_AI
tdys13
0
110
ハッカソンから社内プロダクトへ AIエージェント「ko☆shi」開発で学んだ4つの重要要素
sonoda_mj
6
1.7k
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
770
モダンデータスタックの理想と現実の間で~1.3億人Vポイントデータ基盤の現在地とこれから~
taromatsui_cccmkhd
2
270
Authlete で実装する MCP OAuth 認可サーバー #CIMD の実装を添えて
watahani
0
200
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
2
1.7k
アプリにAIを正しく組み込むための アーキテクチャ── 国産LLMの現実と実践
kohju
0
230
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
31
Why Our Code Smells
bkeepers
PRO
340
57k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
350
Automating Front-end Workflow
addyosmani
1371
200k
WCS-LA-2024
lcolladotor
0
390
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
82
AI: The stuff that nobody shows you
jnunemaker
PRO
1
28
Information Architects: The Missing Link in Design Systems
soysaucechin
0
720
Designing Powerful Visuals for Engaging Learning
tmiket
0
190
How to Talk to Developers About Accessibility
jct
1
86
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
190
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
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 🙌