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
Vagrant と Chef で プログラマブルな 開発環境をつくる
Search
aereal
September 21, 2013
Technology
0
2.3k
Vagrant と Chef で プログラマブルな 開発環境をつくる
aereal
September 21, 2013
Tweet
Share
More Decks by aereal
See All by aereal
How to send distibuted traces to Datadog using build own OpenTelemetry-Lambda distribution
aereal
3
200
好きな技術《コト》で、 生きていく技術 / life with what you like
aereal
5
2.3k
qron: Cloud Native Cron Alternativeの今
aereal
2
2.1k
自動作曲入門 / introduction to programatic music composition
aereal
1
530k
はてなブログ タグとCDK / The epic of AWS CDK and Hatena Blog Tag
aereal
3
200k
はてなブログ タグの技術選択 / The technical details of Hatena Blog Tag
aereal
3
200k
ブログサービスのHTTPS化を支えたAWSで作るピタゴラスイッチ / The construction of large scale TLS certificates management system with AWS
aereal
3
400k
AWSではてなブログの常時HTTPS配信をバーンとやる話 / The Epic of migration from HTTP to HTTPS on Hatena Blog with AWS
aereal
14
17k
ScalaとPerlでMicroservices in production / Building microservices with Perl and Scala in production
aereal
0
5.3k
Other Decks in Technology
See All in Technology
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
370
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
5
590
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
580
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
280
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
190
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
580
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
240
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Building Adaptive Systems
keathley
38
2.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
How to Ace a Technical Interview
jacobian
276
23k
Typedesign – Prime Four
hannesfritz
40
2.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Writing Fast Ruby
sferik
627
61k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Transcript
Vagrant ͱ Chef Ͱ ϓϩάϥϚϒϧͳ ։ൃڥΛͭ͘Δ id:aereal 139݄21༵
id:aereal @aereal aereal aereal.org 139݄21༵
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Web ΞϓϦέʔγϣϯ 139݄21༵
•Model •DBI •View •JSON::XS •Text::Xslate •Controller •(Router::Simple) 139݄21༵
•LWP::UserAgent, Furl •XML::*, YAML::Syck •Email::* •Image::Magick 139݄21༵
ෳࡶͳґଘؔ 139݄21༵
ґଘͷղܾ 139݄21༵
Web αʔϏε 139݄21༵
OS 139݄21༵
ຊ൪ •CentOS ։ൃ •OS X •Windows •Linux (Debian) 139݄21༵
ߏཧ 139݄21༵
ຊ൪ •Chef •RPM ։ൃ •cpanm •Homebrew •apt •yum 139݄21༵
ͱΓ͋͑ͣ cpanm --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
cpanm --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
cpanm \ --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
͏ͩ 139݄21༵
ͳΜͱ͔͢Δ 139݄21༵
จॻΛ͢ 139݄21༵
•ܦҢɺจ຺Λ͢ •ʮ݁ہͲ͏͢Ε͍͍͔ʯԕ͍ •Ϟνϕʔγϣϯͷফඅ •Ϟνϕʔγϣϯ༗ݶ •ʮͱʹ͔͘ؤுΔʯ 139݄21༵
ϓϩάϥϚϒϧͳ ηοτΞοϓํ๏ 139݄21༵
•୯७࡞ۀͷੵΈॏͶ •ΦϓγϣϯҾͷࢼߦࡨޡͱ͔ •ϩά͕Δ •յΕͨ͜ͱ͕͙͢ʹΘ͔Δ 139݄21༵
139݄21༵
•VM Λ্ཱͪ͛Δ •(Ҏલʹ͍ͬͯͨ) •ϋʔυΣΞਐԽ͕ͨ͠…… 139݄21༵
139݄21༵
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ 139݄21༵
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ R.I.P. 139݄21༵
•NFS ͰήετͱϦϙδτϦΛڞ༗͢Δ •Virtualbox ͷ shared folder ͍ •࠷େ20ഒ͍…… • http://docs-v1.vagrantup.com/v1/docs/nfs.html
•MySQL ͳͲ Cookbook Λ༻ҙ͢Δ 139݄21༵
•perl-build Ͱ Perl 5.8.8 ΛೖΕΔ •tokuhirom/perl-build •CPAN Ϟδϡʔϧ Cookbook ʹهड़
•όʔδϣϯΛࢦఆͯ͠Πϯετʔϧ͢Δ LWRP •ผʹ Carton ԽਐΊ͍ͯΔ 139݄21༵
• ./bin/server • vagrant up • vagrant ssh-config --host vagrant
> .ssh_config • ssh "cd /repos; perl server.up $@" 139݄21༵
•VM Λ্ཱͪ͛ͯ •ssh_config Λͭͬͯ͘ •SSH Ͱήετ OS ্ͰεΫϦϓτΛ࣮ߦ •Proclet 139݄21༵
͙͢ʹ։ൃ͍ͨ͠!!! 139݄21༵
•provisioning ·Ͱࡁ·ͤͨ box ΛΔ •ࣾϑΝΠϧαʔό •FTP ΞΫηεՄ 139݄21༵
http://git.io/PBG-og ※༧ఆ 139݄21༵
՝ 139݄21༵
•ೋॏཧͳͷͦͷ·· •ຊ൪ʹద༻͞ΕΔ Chef Ϩγϐͱ࿈ܞ •ϝϯς͍ͯ͠Δͷ͚ࣗͩ •ݟΛΊ͍͖͍ͯͨ 139݄21༵
ͳʹͱ͋Ε 139݄21༵
Vagrant + Chef ࠷ߴ! 139݄21༵
Vagrant + Chef ࠷ߴ? 139݄21༵
NOT ۜͷؙ 139݄21༵
•όʔδϣϯ੍͕ڧ͍ •CPAN Ϟδϡʔϧ •ϛυϧΣΞ •৽ͨʹ։ൃʹࢀՃ͢Δਓ͕Ұఆ͍Δ •Πϯλʔϯ •ҟಈ 139݄21༵
Θͣʹ͢Ήͷ͕ཧ 139݄21༵
•Carton •plenv / perlbrew •(Chef Solo) 139݄21༵
ෳࡶ͞ͷঈΛ͔Ε 139݄21༵
Fin. 139݄21༵