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
35
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
130
hybrid-cloud-seminar.pdf
shihyuho
0
87
JCConf 2021 Access Kubernetes API in Java
shihyuho
0
110
JCConf 2020 Observing in Microservices
shihyuho
0
710
iThome Kubernetes Summit 2018
shihyuho
0
57
JCConf 2016 zookeeper
shihyuho
0
54
Other Decks in Technology
See All in Technology
プロセス改善による品質向上事例
tomasagi
2
2.5k
個人開発から公式機能へ: PlaywrightとRailsをつなげた3年の軌跡
yusukeiwaki
11
3k
現場で役立つAPIデザイン
nagix
33
12k
一度 Expo の採用を断念したけど、 再度 Expo の導入を検討している話
ichiki1023
1
170
プロダクトエンジニア構想を立ち上げ、プロダクト志向な組織への成長を続けている話 / grow into a product-oriented organization
hiro_torii
1
170
「海外登壇」という 選択肢を与えるために 〜Gophers EX
logica0419
0
700
Classmethod AI Talks(CATs) #16 司会進行スライド(2025.02.12) / classmethod-ai-talks-aka-cats_moderator-slides_vol16_2025-02-12
shinyaa31
0
110
滅・サービスクラス🔥 / Destruction Service Class
sinsoku
6
1.6k
リーダブルテストコード 〜メンテナンスしやすい テストコードを作成する方法を考える〜 #DevSumi #DevSumiB / Readable test code
nihonbuson
11
7.2k
株式会社EventHub・エンジニア採用資料
eventhub
0
4.3k
表現を育てる
kiyou77
1
210
RSNA2024振り返り
nanachi
0
580
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
How STYLIGHT went responsive
nonsquared
98
5.4k
Building Adaptive Systems
keathley
40
2.4k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Building an army of robots
kneath
303
45k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
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 🙌