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
Docker bake(とCache)でCI/CDを改善する
Search
ゆるゆる
January 22, 2024
Programming
0
300
Docker bake(とCache)でCI/CDを改善する
ゆるゆる
January 22, 2024
Tweet
Share
More Decks by ゆるゆる
See All by ゆるゆる
改行には気をつけよう
sunyryr
0
27
WebAPI の設計
sunyryr
0
83
OpenAPI×LaravelでAPI開発を格段に便利にする方法
sunyryr
0
980
OpenAPIことはじめ
sunyryr
0
110
server side swift - codable
sunyryr
0
230
iOSアプリだけじゃないSwift
sunyryr
0
130
Other Decks in Programming
See All in Programming
Spatial Rendering for Apple Vision Pro
warrenm
0
110
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
250
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
3
470
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.9k
ドメインイベント増えすぎ問題
h0r15h0
2
340
MCP with Cloudflare Workers
yusukebe
2
220
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
Kaigi on Railsに初参加したら、その日にLT登壇が決定した件について
tama50505
0
100
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
120
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Visualization
eitanlees
146
15k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Designing for humans not robots
tammielis
250
25k
Six Lessons from altMBA
skipperchong
27
3.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Optimising Largest Contentful Paint
csswizardry
33
3k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
KATA
mclloyd
29
14k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Transcript
%PDLFSCBLFʢͱ$BDIFʣͰ$*$%Λվળ͢Δ 304$"'&%FW0QT Taiyo Minagawa
2 ࣗݾհ • 5BJZP.JOBHBXBΏΔΏΔ • גࣜձࣾΏΊΈ • #BDLFOE&OHJOFFSࣗ *OGSB&OHJOFFS •
झຯ ◦ υϥΠϒ ◦ ཱྀߦ ◦ ϒϧʔΞʔΧΠϒ TVOZSZS TVO@ZSZS
3 ࣍ %PDLFSCBLFͷհ ࣮ࡍͷվળͷ༷ࢠ
4 %PDLFSCBLFͷհ ίϯςφԽͯ͠·͔͢ʁ
5 %PDLFSCBLFͷհ IUUQTHJUIVCDPNEPDLFSCVJMEYCMPCNBTUFSEPDTSFGFSFODFCVJMEY@CBLFNE
6 CBLFͱ • ߴϨϕϧͷϏϧυΦʔέετϨʔγϣϯ • શͯͷΠϝʔδΛ·ͱΊͯߏஙͰ͖Δ • %PDLFSϏϧυͷλεΫϥϯφʔͱͯ͠ଊ͑ΒΕΔ • #VJME,JUͷฒྻԽΛ࠷େݶʹ׆༻͢ΔͨΊͷπʔϧ
ෳͷΠϝʔδΛϏϧυ͢Δ࣌ʹ͏ͱྑ͍πʔϧ
7 CBLFͷϝϦοτ • ࠷దͳϏϧυॱΛܭࢉͯ͠ϏϧυΛߦͬͯ͘ΕΔ • Ϗϧυͷॲཧޮ্͕͕Δ ϨΠϠʔ̍ ϨΠϠʔ̎ ϨΠϠʔ̏ λʔήοτ"
ϨΠϠʔ̍ ϨΠϠʔ̎ λʔήοτ# ϨΠϠʔ̐ ϨΠϠʔ̍ ϨΠϠʔ̎ ϨΠϠʔ̏ λʔήοτ" λʔήοτ# ϨΠϠʔ̐ ˞͜ͷॏෳআ CVJME,JUͷػೳ
8 CBLFͷϝϦοτ • ϏϧυઃఆΛߏతʹఆٛͰ͖Δ • )$- )BTIJ$PSQDPOGJHVSBUJPOMBOHVBHF ͕͑Δ https://github.com/moby/buildkit/blob/master/docker-bake.hcl#L118-L148 variable
"GO_VERSION" { default = null } ม function "bindir" { params = [defaultdir] result = DESTDIR != "" ? DESTDIR : "./bin/${defaultdir}" } ؔ name = "lint-${buildtags.name}" จࣈͷຒΊࠐΈʢςϯϓϨʔτϦςϥϧʣ
9 CBLFΛطʹ༻͍ͯ͠ΔϓϩδΣΫτ • NPCZNPCZ • NPCZCVJMELJU • EPDLFSCVJMEY • EVOHMBTGSBOLFOQIQ
• KFOLJOTDJEPDLFS
10 ࣄྫհ
11 ͱ͋ΔϓϩδΣΫτͷ • &$4Ͱ "1*αʔόʔ͕ߏங͞Ε͍ͯΔ • ݕূ༻ؚΊݸͷΠϝʔδΛϏϧυ͢Δඞཁ͕͋Δ • $*$% +FOLJOTΛར༻͍ͯͨ͠
◦ ڥ $*͝ͱʹϦηοτ͞Εͳ͍ ◦ উखʹ %PDLFSͷ MBZFSDBDIF͕ޮ͘ͷϝϦοτͱݴ͑ͳ͘ͳ͍ʢͳ͍ʣ • σϓϩΠઌ͕ΊͪΌͪ͘Ό͋Δʂ • ຊ൪ڥͷσϓϩΠࣗಈԽ͍ͯͯ͠ɺόʔδϣϯλάΛ͚Δʢ͜ΕϫʔΫϑϩ ʔΛ༻ҙ͍ͯ͠·͢ʣ͚ͩͰσϓϩΠ͞ΕΔ • (JU)VC"DUJPOTʹҠߦ͢Δ
12 ํ • $*$%ͷྲྀΕ͋·Γ͍͡Βͳ͍ • (JU)VC"DUJPOTຖճڥ͕Ϧηοτ͞ΕΔͷͰɺผͷॴʹ MBZFS DBDIF Λอଘ͢Δ ◦
ࠓճ 4Λબͼ·ͨ͠ ◦ ͜ͷΩϟογϡͷهड़͕ΊͪΌͪ͘Ό͍ͷͰ CBLFͷԸܙ͕ग़͖ͯ·͢
13 +FOLJOT࣌ͷϏϧυ࣌ؒ • UYMBSHFʢDPSF(#ʣ • ʙ͘Β͍ ◦ " # ฒྻͰ͢
• গͳ͘ͱ :BSOͷΩϟογϡ͕ޮͣ͘ Ͱ͕͢ɺͳ͔ͥ ճಉ͡Α͏ͳ࣌ؒ ͔͔͍ͬͯΔ ビルドA ビルドB 2回目 3回目 1回目
14 (JU)VC"DUJPOTҠߦ CBLF DBDIFCBDLFOE • LT্ͷ 1PEʢ$PSF(#ʣ • ฒྻॲཧ CBLFʹͤΔ
15 ҠߦޙͷϏϧυ࣌ؒ • ͢Έ·ͤΜӕͰ͢ɺͪ͜Β͕ҰൠతͳϏϧυ࣌ؒͰ͢ • ҰൠతͳΞϓϦέʔγϣϯͷϏϧυఔͰ CBLFʹΑΔΞοϓͷԸܙগͳ͍ ◦ Ωϟογϡ͕ͨͬͨ࣌ͷݟҧ͑Δ΄Ͳʹ্ •
ฒྻԽʹΑͬͯϦιʔεར༻ͷޮ͔ͳΓ্͕ͬͨΑ͏ʹݟ͑Δ ◦ $PSF $PSF ͰಉͷϏϧυ࣌ؒ
16 ·ͱΊ • %PDLFSCBLFΛ͏ͱϏϧυઃఆ͕ཧ͘͢͠ͳΔͷͰΤϯδχΞʹخ͍͠ʂ • $BDIFTUPSBHFCBDLFOEΛઃఆ͢Δͱ $*ͷ͕վળ͢ΔͷͰ։ൃޮ61ɾ ίετ%08/͕خ͍͠ʂ ◦ ϏϧυίϚϯυ͕͘ͳΔ
CBLFͰղܾ
17 ༨ஊ r ։ൃɾςετڥΊͬͪΌ͋Δ
18 ༨ஊ r ։ൃɾςετڥΊͬͪΌ͋Δ
19 ࠾༻ใ
20 ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠