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.4k
Other Decks in Technology
See All in Technology
Flutterによる 効率的なAndroid・iOS・Webアプリケーション開発の事例
recruitengineers
PRO
0
110
組織成長を加速させるオンボーディングの取り組み
sudoakiy
2
180
複雑なState管理からの脱却
sansantech
PRO
1
150
SRE×AIOpsを始めよう!GuardDutyによるお手軽脅威検出
amixedcolor
0
130
Zennのパフォーマンスモニタリングでやっていること
ryosukeigarashi
0
110
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
200
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
1
110
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
390
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
410
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
160
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.9k
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Practical Orchestrator
shlominoach
186
10k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
It's Worth the Effort
3n
183
27k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Done Done
chrislema
181
16k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
GraphQLとの向き合い方2022年版
quramy
43
13k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Six Lessons from altMBA
skipperchong
27
3.5k
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༵