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
610
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.4k
AWS構築のハマりポイントを詳しく解説 / Cloud on the BEACH 2016
enokawa
3
1.5k
JAWS DAYS 2016 ランチセッション
enokawa
0
580
AWS初心者がCodenize.toolsでInfrastructure as Codeした話/jawsug-beginner2-lt
enokawa
0
840
AWS SDK for RubyでDynamoDBを操作してみた
enokawa
0
340
cloudpackインターン成果報告
enokawa
0
2k
ownCloud on AWS in Hackers Champloo 前夜祭 #hcmpl
enokawa
0
620
#jawsug 沖縄 勉強会「AWS触ってみたけどその後どうしてる?」
enokawa
0
98
Other Decks in Technology
See All in Technology
ソフトウェア エンジニアとしての 姿勢と心構え
recruitengineers
PRO
2
620
7月のガバクラ利用料が高かったので調べてみた
techniczna
3
260
OpenAPIから画面生成に挑戦した話
koinunopochi
0
150
実践アプリケーション設計 ③ドメイン駆動設計
recruitengineers
PRO
1
160
知られざるprops命名の慣習 アクション編
uhyo
10
2.4k
AIとTDDによるNext.js「隙間ツール」開発の実践
makotot
5
660
GCASアップデート(202506-202508)
techniczna
0
250
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
2
20k
Evolution on AI Agent and Beyond - AGI への道のりと、シンギュラリティの3つのシナリオ
masayamoriofficial
0
170
生成AI利用プログラミング:誰でもプログラムが書けると 世の中どうなる?/opencampus202508
okana2ki
0
190
見てわかるテスト駆動開発
recruitengineers
PRO
4
280
Goでマークダウンの独自記法を実装する
lag129
0
210
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
780
What's in a price? How to price your products and services
michaelherold
246
12k
GraphQLとの向き合い方2022年版
quramy
49
14k
Become a Pro
speakerdeck
PRO
29
5.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Side Projects
sachag
455
43k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
KATA
mclloyd
32
14k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
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