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
500
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
550
AWS初心者がCodenize.toolsでInfrastructure as Codeした話/jawsug-beginner2-lt
enokawa
0
830
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
AI時代のデータセンターネットワーク
lycorptech_jp
PRO
1
280
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
520
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
160
MLOps の現場から
asei
6
630
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
190
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
150
アップデート紹介:AWS Data Transfer Terminal
stknohg
PRO
0
170
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
180
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Practical Orchestrator
shlominoach
186
10k
It's Worth the Effort
3n
183
28k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
For a Future-Friendly Web
brad_frost
175
9.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Thoughts on Productivity
jonyablonski
67
4.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Fireside Chat
paigeccino
34
3.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
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