Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
210
好きな技術《コト》で、 生きていく技術 / 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
KotlinユーザのためのJSpecify入門 / JSpecify 101 for Kotlin Devs
eller86
0
120
プラットフォームエンジニアリングアーキテクチャ道場 on AWS & EKS Kubernetes / Platform Engineering Architecture Dojo
riita10069
7
16k
実践/先取り「入門 Kubernetes Validating/Mutating Admission Policy」 / CloudNative Days Winter 2024
pfn
PRO
0
110
大規模トラフィックを支える ゲームバックエンドの課題と構成の変遷 ~安定したゲーム体験を実現するために~
colopl
0
240
ゆるSRE勉強会 #8 組織的にSREが始まる中で意識したこと
abnoumaru
0
520
クラウドネイティブなNewSQLで実現するミッションクリティカルなアプリケーションの運用
yuyu_hf
PRO
1
130
Bytebaseで実現する データベース管理の効率化
shogo452
1
100
Amazon ECSとCloud Runの相互理解で広げるクラウドネイティブの景色 / Mutually understanding Amazon ECS and Cloud Run
iselegant
17
1.9k
SRE×AIOpsを始めよう!GuardDutyによるお手軽脅威検出
amixedcolor
1
300
LLMOps: Eval-Centric を前提としたMLOps
asei
4
260
LY Accessibility Guidelines @fukuoka_a11yconf_前夜祭
lycorptech_jp
PRO
1
110
RDRAとLLM
kanzaki
4
440
Featured
See All Featured
Being A Developer After 40
akosma
87
590k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
A Philosophy of Restraint
colly
203
16k
The Language of Interfaces
destraynor
154
24k
Practical Orchestrator
shlominoach
186
10k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Agile that works and the tools we love
rasmusluckow
327
21k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
140
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
17k
Six Lessons from altMBA
skipperchong
27
3.5k
Embracing the Ebb and Flow
colly
84
4.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༵