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
240
TwitterのList編集しやすいやつ作った
ryonext
0
1.8k
validationについて
ryonext
1
780
AWS Lambda と API GatewayでRails使わずに済んだ話
ryonext
8
4.3k
capistrano-bundle_rsync使ったらオートスケールが高速化した話
ryonext
8
2.5k
PumaとUnicornで最近自分が理解したこと
ryonext
13
9.4k
Hubot事例
ryonext
1
1.6k
Redisでバッチ処理を冗長化しつつ排他制御
ryonext
0
2.1k
rubykaigi 3day interactive white board
ryonext
2
390
Other Decks in Programming
See All in Programming
Portapad紹介プレゼンテーション
gotoumakakeru
1
130
パッケージ設計の黒魔術/Kyoto.go#63
lufia
2
340
開発チーム・開発組織の設計改善スキルの向上
masuda220
PRO
17
9.2k
一人でAIプロダクトを作るための工夫 〜技術選定・開発プロセス編〜 / I want AI to work harder
rkaga
13
2.9k
A Gopher's Guide to Vibe Coding
danicat
0
180
MLH State of the League: 2026 Season
theycallmeswift
0
180
もうちょっといいRubyプロファイラを作りたい (2025)
osyoyu
0
180
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1.3k
Langfuseと歩む生成AI活用推進
licux
3
320
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
970
兎に角、コードレビュー
mitohato14
0
160
私の後悔をAWS DMSで解決した話
hiramax
4
170
Featured
See All Featured
It's Worth the Effort
3n
187
28k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Gamification - CAS2011
davidbonilla
81
5.4k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
Scaling GitHub
holman
463
140k
Side Projects
sachag
455
43k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
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ͯ͠Ϛʔδͯ͠σϓϩΠ͞ΕΔͷϚδͰ ྑ͍͔ΒΔ͖