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
220
TwitterのList編集しやすいやつ作った
ryonext
0
1.7k
validationについて
ryonext
1
720
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.5k
Redisでバッチ処理を冗長化しつつ排他制御
ryonext
0
1.9k
rubykaigi 3day interactive white board
ryonext
2
380
Other Decks in Programming
See All in Programming
hotwire_or_react
harunatsujita
8
4k
CSC509 Lecture 08
javiergs
PRO
0
110
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
2
1.7k
のびしろを広げる巻き込まれ力:偶然を活かすキャリアの作り方/oso2024
takahashiikki
1
410
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
150
讓數據說話:用 Python、Prometheus 和 Grafana 講故事
eddie
0
350
CSC509 Lecture 09
javiergs
PRO
0
100
OpenTelemetryでRailsのパフォーマンス分析を始めてみよう(KoR2024)
ymtdzzz
4
1.5k
Vaporモードを大規模サービスに最速導入して学びを共有する
kazukishimamoto
4
4.3k
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
330
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
110
Macとオーディオ再生 2024/11/02
yusukeito
0
150
Featured
See All Featured
Writing Fast Ruby
sferik
626
61k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
790
A Philosophy of Restraint
colly
203
16k
Music & Morning Musume
bryan
46
6.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
Building Applications with DynamoDB
mza
90
6.1k
Producing Creativity
orderedlist
PRO
341
39k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.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ͯ͠Ϛʔδͯ͠σϓϩΠ͞ΕΔͷϚδͰ ྑ͍͔ΒΔ͖