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とwercker
Search
ryonext
May 21, 2014
Programming
3
1.2k
CircleCIとwercker
ryonext
May 21, 2014
Tweet
Share
More Decks by ryonext
See All by ryonext
AWS Lambda の Ruby 対応
ryonext
0
230
TwitterのList編集しやすいやつ作った
ryonext
0
1.8k
validationについて
ryonext
1
740
AWS Lambda と API GatewayでRails使わずに済んだ話
ryonext
8
4.2k
capistrano-bundle_rsync使ったらオートスケールが高速化した話
ryonext
8
2.4k
PumaとUnicornで最近自分が理解したこと
ryonext
13
9.4k
Hubot事例
ryonext
1
1.6k
Redisでバッチ処理を冗長化しつつ排他制御
ryonext
0
2k
rubykaigi 3day interactive white board
ryonext
2
380
Other Decks in Programming
See All in Programming
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
250
15分で学ぶDuckDBの可愛い使い方 DuckDBの最近の更新
notrogue
3
540
負債になりにくいCSSをデザイナとつくるには?
fsubal
10
2.6k
GoとPHPのインターフェイスの違い
shimabox
2
210
バッチを作らなきゃとなったときに考えること
irof
2
530
ABEMA iOS 大規模プロジェクトにおける段階的な技術刷新 / ABEMA iOS Technology Upgrade
akkyie
1
210
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
910
ML.NETで始める機械学習
ymd65536
0
230
PHPカンファレンス名古屋2025 タスク分解の試行錯誤〜レビュー負荷を下げるために〜
soichi
1
710
CI改善もDatadogとともに
taumu
0
200
[JAWS DAYS 2025] 最近の DB の競合解決の仕組みが分かった気になってみた
maroon1st
0
130
新宿駅構内を三人称視点で探索してみる
satoshi7190
2
120
Featured
See All Featured
Site-Speed That Sticks
csswizardry
4
410
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Rails Girls Zürich Keynote
gr2m
94
13k
Bootstrapping a Software Product
garrettdimon
PRO
306
110k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
10
520
Navigating Team Friction
lara
183
15k
Docker and Python
trallard
44
3.3k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
12
1k
Facilitating Awesome Meetings
lara
52
6.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
Transcript
CircleCIͱwercker ryonext
ࣗݾհ @ryonext ࠷ۙiPhoneΛམͱͯ͠ΨϥεΛׂΓ·͠ ͨ
ϒϩάॻ͖·ͨ͠ http://ryonext.hatenablog.com/entry/ 2014/05/20/093828
CircleCI
ಋೖʹࢸͬͨܦҢ ҎલҰ൪͍҆ϓϥϯ($19/݄)ͩͱ1 private repository͔͠ϏϧυͰ͖ͳ͔ͬ ͨͷ͕ɺແ੍ݶʹͳͬͨ ಉ࣮࣌ߦδϣϒͰ՝ۚʹͳͬͨ
ྑ͍ privateϦϙδτϦΛϏϧυ͢Δͷ͕ϝΠϯͷUXʹͳ͍ͬͯΔ ͍ʢJenkinsΛ AWS m1.smallͰಈ͔͢ΑΓ2ഒఔ͍ʣ ಋೖ͕؆୯ JenkinsͷΑ͏ͳWebUIͰͷδϣϒೖྗɺymlͰͷδϣϒొͷ྆ํαϙʔ τ ͓ࢼ͠Web͔Βͬͯɺ͏·͘ಈ͍ͨΒymlΛϦϙδτϦʹೖΕΔɺͱ ͍͏͜ͱ͕Ͱ͖Δ
࡞ͬͨΠϝʔδʹ͠Β͘sshͰ͖ΔͷͰղੳ͕ḿΔ αϙʔτ͕खް͍
ѱ͍ sudoͰ͖ͳ͍ ͦͯ͠ຊlocale͕ೖͬͯͳ͍
ͦͷଞɺJenkinsൺͰྑ͍ ӡ༻ͷ৺͕ͳ͍ ֓Ͷඞཁͦ͏ͳػೳ࠷ॳ͔Βೖ͍ͬͯ ΔʢϏϧυɺ௨࿈ܞʣ pushͨ͠Β͙͢ςετͯ͘͠ΕΔͷͰ pull req͢Δࠒʹ͏Ϛʔδͯ͠OK͔ Θ͔Δ
Jenkins͡Όͳ͍ͱ͍͠ ͱ͜Ζ Ϗϧυ࣌ؒʹ੍ݶ͕͋Δ ࡉ͔͍ύΠϓϥΠϯࢦఆͳͲͰ͖ͳ ͍ cronͱͯ͠͏
werckerࢼͯ͠Έͨ
ྑ͔ͬͨ sudoՄೳ ίϯςφ֤࣮ߦίϚϯυ͕ϓϥΨϒϧʹ ͳ͓ͬͯΓɺݸਓͷ։ൃऀ͕ՃػೳΛ ߘՄೳ ͜Ε͔Β৳ͼ͍͖ͯͦ͏ ·ͩϕʔλͳͷͰແྉ
ѱ͔ͬͨ OSSΛओ࣠ʹͨ͠UXɻpublicʹ͢ΔϘλϯ͕ৗʹग़ ͯΔ αΠτ͕མͪΔ DB͕localhostʹͳ͍ ڥมͰࢦఆ͢Δherokuํࣜ Ұ෦ͷίϚϯυ͕ಠࣗDSL
ಠࣗDSLৄ͘͠ bundle install Λ bundle-install ͱॻ͔ͳ ͍ͱ͍͚ͳ͍ͱ͔ ҰԠɺscriptͱ͍͏ͦͷ··γΣϧΛॻ ͚ΔίϚϯυ͋Γ
wercker·ͱΊ ·ͩϕʔλͳͷͰ҆ఆੑѱ͍ͷํͳ͍ ͜Ε͔Β৳ͼͦ͏ ࠓݟͨ͜ͷهࣄ໘ന͔ͬͨ bitbucketͱwerckerͰ̌ԁCIΛ͢Δ - razokulover publog http://razokulover.hateblo.jp/entry/ 2014/05/21/000306
ʢJenkinsͰͰ͖Δ͚Ͳʣ pull reqσϓϩΠͬͯΈͨ naoya͞ΜͷهࣄΛࢀߟʹ GitHub ࣌ͷσϓϩΠઓུ - naoyaͷ ͯͳμΠΞϦʔ http://d.hatena.ne.jp/
naoya/20140502/1399027655
͜͏͍͏ͷ feature => developʹ pull reqͯ͠Ϛʔδ stagingʹσϓϩ Π develop =>
master ʹ pull reqͯ͠Ϛʔδ ຊ൪ʹσϓϩΠ
ײ ͜ͷϘλϯԡͨ͠ΒσϓϩΠ͞ΕΔʂͬ ͯͷ͕͍͋ͬͯ͢͝ϫΫϫΫ͢Δɻ
ͬͯΈͨ݁Ռ
Failed!
͜ ͷ ͋ ͱ ͪ Ό Μ ͱ म ਖ਼
͠ ͨ
·ͱΊ AWSͷsmall instanceͰJenkinsͯ͠ΔͳΒ֎෦ͷ CIαʔϏεͬͯΈΔͱྑ͍ Jenkinsͬͯͳ͍ͳΒͳ͓͞Β ϑϧΧελϜJenkinsࢯͷΘΓʹͳΓͮΒ͍ pull reqͯ͠Ϛʔδͯ͠σϓϩΠ͞ΕΔͷϚδͰ ྑ͍͔ΒΔ͖