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
CircleCI Orbs にコントリビュートした話 / Story contributed...
Search
Naoto Enokawa
December 11, 2019
Technology
0
480
CircleCI Orbs にコントリビュートした話 / Story contributed to CircleCI Orbs
https://circleci.connpass.com/event/154878/
Naoto Enokawa
December 11, 2019
Tweet
Share
More Decks by Naoto Enokawa
See All by Naoto Enokawa
AWS re:Invent 2017行ってきました報告 / JAWS-UG Okinawa 20180106
enokawa
1
320
Roadworkerではじめる大量DNS移行 / Codenize Meetup
enokawa
0
3.2k
AWS構築のハマりポイントを詳しく解説 / Cloud on the BEACH 2016
enokawa
3
1.4k
JAWS DAYS 2016 ランチセッション
enokawa
0
540
AWS初心者がCodenize.toolsでInfrastructure as Codeした話/jawsug-beginner2-lt
enokawa
0
820
AWS SDK for RubyでDynamoDBを操作してみた
enokawa
0
330
cloudpackインターン成果報告
enokawa
0
2k
ownCloud on AWS in Hackers Champloo 前夜祭 #hcmpl
enokawa
0
610
#jawsug 沖縄 勉強会「AWS触ってみたけどその後どうしてる?」
enokawa
0
94
Other Decks in Technology
See All in Technology
分析者起点の企画を成功させた連携面の工夫
lycorptech_jp
PRO
1
260
New Relicを活用したシステム監視の強化とオブザーバビリティ向上
sugoto911
1
100
電子辞書にステータスバーを実装する
puhitaku
0
110
From naive to advanced RAG: the complete guide
glaforge
0
140
Azure Verified Moduleを触って分かった注目ポイント/azure-verified-module-begin
mhrtech
1
440
プロダクト価値を考えるための情報透明化とチーム文化づくり
nyo_taro
1
150
【shownet.conf_】多様化するネットワーク環境を柔軟に統合するルーティングテクノロジー
shownet
PRO
0
390
怖くないオフライン機能開発 〜基本的な技術で実現する現場向けオフライン機能 / Developing offline functions without fear ~ Offline functions for the field realized with basic technology
kaminashi
1
110
O'Reilly Superstream: Building a RAG App to Chat with Your Data
pamelafox
0
120
それでもやっぱり ExpressRoute が好き!
skmkzyk
0
340
Oracle Database 23ai 新機能#4 Real Application Clusters
oracle4engineer
PRO
0
160
Slackbot × RAG で実現する社内情報検索の最適化
howdy39
2
340
Featured
See All Featured
How GitHub (no longer) Works
holman
311
140k
Designing for humans not robots
tammielis
249
25k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
39
2.1k
Design by the Numbers
sachag
278
19k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Web development in the modern age
philhawksworth
205
10k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.8k
What's in a price? How to price your products and services
michaelherold
243
11k
A designer walks into a library…
pauljervisheath
202
24k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
26
4.1k
Transcript
CircleCI Orbs ʹίϯτϦϏϡʔτͨ͠ ӫ ే(@enkw_) 2019.12.11
ࣗݾհ ‘ ӫ ేʢ͑ͷ͔Θ ͳ͓ͱʣ ‘ ΞΠϨοτגࣜձࣾ ΠϯϑϥΤϯδχΞ ‘ Japan
APN Ambassador બग़ ‘ Twitter: @enkw_
ΞΠϨοτגࣜձࣾ ઃཱ ࢿຊۚ දऀ ैۀһ 200310݄15 7,000ສԁ ᜊ౻ কฏ 513໊ʢ201910݄࣌ʣ
9ؒAWSͷΈͰӡ༻อक 4 ࣾ ࣾ ϓϩδΣΫ τ 1200 2500 9ؒ 9000
ӡ༻
རްੜ ͦͷ̍ ‘ ۙྡॅखʢձ͔ࣾΒ1kmҎʹॅΜͩΒ࠷େ5ສԁิॿ͕ʂʣ • ދϊҎ֎1kmݍͰ3ສʹͳΓ·͢ ‘ ۙྡॅखҬͷҾӽ͠අ༻ิॿʢ࠷େ15ສࢧڅʣ ‘ ԕڑ௨ۈखʢ௨ۈʹ1.5࣌ؒҎ্͔͔Δਓ͚ʣ
‘ άϦʔϯंखʢ௨ۈʹ1࣌ؒҎ্͔͔Γɺۀ͕͍͠ਓ͚ʣ ‘ ݈߁ҡ࣋ͷҝͷεϙʔπࢧԉ • ࣾһ4ਓҎ্͕ू·ͬͯεϙʔπΛ͢Δࢪઃར༻ྉֹิॿʢ1ਓ্ݶ5,000ԁʣΛิॿ ‘ εϙʔπେձࢀՃิॿ • ࣾһ͕εϙʔπେձʹࢀՃ͢Δ߹ɺͦͷࢀՃඅͷֹʢ্ݶ 1ճʹ͖ͭ1ສԁʣΛิॿ ‘ ձࣾՃೖIT݈อͷεϙʔπδϜར༻Մ ʢίφϛεϙʔπΫϥϒɺηϯτϥϧεϙʔπɺΔ͢ͽ͋ʣ ‘ ؔ౦ITιϑτΣΞ݈߁อݥ߹
རްੜ ͦͷ̎ ‘ ֤छࢿ֨ࢧԉ༗ΓʢAWSೝఆࢼݧͳͲશֹෛ୲ʣ ‘ ࢈ٳɾҭٳ੍͋Γ ‘ ැཆՈखʢැཆՈ͕૿͖͑ͯͨΒॿ͔Δʂʣ ‘ γϑτۈखʢ24/365ӡ༻ͷMSPνʔϜ͚ʣ
‘ Ϛοαʔδɾ᭥ɾΧΠϩϓϥΫςΟοΫ ʢ݄ɾۚʹϓϩͷࢪज़͕ΦϑΟεͰड͚ΒΕ·͢ʣ ‘ 10࣌ग़ۈखʢ10࣌લʹग़ࣾ͢Δͱຖ1,000ԁͰ·͢ʂʣ ‘ ৬ऀϦϑϨογϡٳՋ੍
None
͜ͷ͓Ͱ͢ https://enokawa.hatenablog.jp/entry/2019/10/07/222424
CircleCI Orbs
https://circleci.com/docs/2.0/orb-intro/
CircleCI Orbs ‘ jobs command ܈Λύοέʔδͨ͠ͷ ‘ ಠࣗ Orb
ͷެ։Մೳ ‘ .circleci/config.yml ͕εοΩϦ
CircleCI Orbs ͷҙ ‘ Uncertified Orbs Λར༻͢Δࡍ Security Settings ͔Β
༻ΛڐՄ͢Δඞཁ͕͋Δ ‘ Organization ୯ҐͰͷڐՄ ‘ 2019/12/10 ݱࡏ Uncertified Orbs ΛҰ Publish ͢Δͱ আෆՄ ‘ CircleCI Support ʹґཔ͢Δ͜ͱͰআՄೳ https://circleci.com/docs/2.0/creating-orbs/
Orb Security Settings
ίϯτϦϏϡʔτલͷ͓
None
͜ΕΛ࣮ݱ͔ͨͬͨ͠
ίϯτϦϏϡʔτલͷ͓ ‘ CircleCI ͔Β CodeDeploy Ͱ Blue/Green Deployment ͍ͨ͠ ‘
ݕ౼ஈ֊ͷλΠϛϯάͰ Rolling Update ‘ kayac/ecspresso Blue/Green Deployment ඇରԠʢͩͬͨʣ ‘ 2019/10/15 ʹαϙʔτ ‘ Ҏલ͔Β CircleCI-Public/aws-ecs-orb Λར༻͍ͯͨ͜͠ͱ͋ Γɺ·ͣ Issue Λग़ͯ͠ΈΔ͜ͱʹ https://github.com/kayac/ecspresso/pull/47
https://github.com/CircleCI-Public/aws-ecs-orb/pull/34
͙͢ରԠͯ͘͠Εͳͦ͞͏ͳؾ͕ͨ͠ͷͰPRΛग़͢͜ͱΛܾҙ
ίʔσΟϯάظ
ίʔσΟϯάظ ‘ ͱ͍ͬͯॻ͘ͷ YAML ͱ؆୯ͳ Shell ‘ JavaScript ͷ Templete
Engine Ͱ͋Δ Handlebars ϑΝΠϧΛฤू ‘ ֤ Parameter ͷ Description ॻ͘ඞཁ͕͋ΔͨΊӳޠ͕ΜΔ ‘ ECS CodeDeploy ͷ API ʹؔ͢Δཧղ͕ਂ·Δ ‘ API Reference ΛಡΈࠐΉͨΊ
։ൃͷྲྀΕ 1. src/orb.yml.hbs Λฤू 2. build_orb.sh Ͱ src/orb.yml Λੜ 3.
circleci orb validate src/orb.yml Ͱ Validate 4. ݸਓ Orbs ʹ publish 5. ಈ࡞֬ೝʢˠͷਤ௨Γʹ͍͔֬͘ೝ ͷ܁Γฦ͠
͍ͭʹͦͷ͕࣌
None
None
ͦͷޙ
ͦͷޙ ‘ ϓϩδΣΫτͰͳ͘Քಇத ‘ ͕ࣗίϯτϦϏϡʔτͨ͠ OSS ͕׆༻͞Ε͍ͯΔͬͯŘŘ ‘ PR Merge
ޙͪΐͪ͘ΐ͘ϨϙδτϦΛνΣοΫ͢ΔΑ͏ʹ ‘ Ѫண͕༙͘ ‘ kayac/ecspresso ͷ࣮ಡΜͰΈͨΓ
·ͱΊ
·ͱΊ ‘ OSS Λ͏ͳΒ OSS ʹίϯτϦϏϡʔτ͠Α͏ ‘ ͍ͭͷԸฦ͠ͱ͍͏ҙຯͰ ‘ ཉ͍͠ػೳ͕͋Ε
PR ग़ͦ͏/ࣗͰ࡞Ζ͏ ‘ ϗϯτʹνϟϨϯδͯ͠Α͔ͬͨ ‘ ͍ͭʮαϙʔτ͍ͯ͠ͳ͍͔Β...ʯͱಀ͕͛ͪͩͬͨ ‘ ӳޠϜζ͍ ‘ ͚ͲͰ͖ͳ͍ͱඨʹ͢Βཱͯͳ͍͔ΒΔ
Q&A
CircleCI Orbs ʹίϯτϦϏϡʔτͨ͠ ӫ ే(@enkw_) 2019.12.11