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
730
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
ESLintプラグインを使用してCDKのセオリーを適用する
yamanashi_ren01
2
230
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
知られざるDMMデータエンジニアの生態 〜かつてツチノコと呼ばれし者〜
takaha4k
0
130
2025.01.17_Sansan × DMM.swift
riofujimon
2
530
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
1.8k
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
150
Flatt Security XSS Challenge 解答・解説
flatt_security
0
710
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
170
Package Traits
ikesyo
1
200
선언형 UI에서의 상태관리
l2hyunwoo
0
270
令和7年版 あなたが使ってよいフロントエンド機能とは
mugi_uno
10
5k
Featured
See All Featured
Being A Developer After 40
akosma
89
590k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Site-Speed That Sticks
csswizardry
2
250
We Have a Design System, Now What?
morganepeng
51
7.3k
What's in a price? How to price your products and services
michaelherold
244
12k
Typedesign – Prime Four
hannesfritz
40
2.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
Designing Experiences People Love
moore
139
23k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
570
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ͯ͠Ϛʔδͯ͠σϓϩΠ͞ΕΔͷϚδͰ ྑ͍͔ΒΔ͖