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
Rails 開発環境としての Windows という選択肢
Search
tikkss
July 14, 2018
Programming
0
460
Rails 開発環境としての Windows という選択肢
tikkss
July 14, 2018
Tweet
Share
Other Decks in Programming
See All in Programming
事業成長を爆速で進めてきたプロダクトエンジニアたちの成功談・失敗談
nealle
3
1.4k
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.8k
Amazon Aurora Serverless v2のアプデと、Amazon Aurora PostgreSQL Limitless DatabaseのGAについて
satoshi256kbyte
0
120
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
430
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
4
860
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
170
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
410
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
110
暇に任せてProxmoxコンソール 作ってみました
karugamo
1
680
あれやってみてー駆動から成長を加速させる / areyattemite-driven
nashiusagi
1
190
testcontainers のススメ
sgash708
1
110
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
240
Featured
See All Featured
Side Projects
sachag
452
42k
A better future with KSS
kneath
238
17k
Adopting Sorbet at Scale
ufuk
73
9.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Building an army of robots
kneath
302
44k
Thoughts on Productivity
jonyablonski
67
4.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Building Adaptive Systems
keathley
38
2.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Transcript
Rails ։ൃڥͱͯ͠ͷ Windows ͱ͍͏બࢶ Rails Developers Meetup Day 3 Extreme
2018/7/14 উ෦ ษ a.k.a. @tikkss
ࣗݾհ • GitHub, Twitter: @tikkss • ᰤࢠ͕ר͚Δ Rails ΤϯδχΞ •
Rails 2 ܥͷࠒ͔Β Rails Ͱडୗ։ൃͯ͠·͢ • from ౡࠜݝग़Ӣࢢ
None
None
None
Unix ܥ OS Ͱͷ;ͭ͏Λ Windows ʹ
;ͭ͏ͱʁ
;ͭ͏ਓʹΑͬͯҧ͏
Rails ͷ;ͭ͏
CoC ઃఆΑΓن
Unix ܥ OS ͷ;ͭ͏Λ Windows ʹऔΓೖΕΕ ָͰ͖ΔͷͰʁ
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
Windows Ͱશͯͷ ”;ͭ͏” Λຬͨ͢͜ͱͰ͖ͳ͔ͬͨ
ͦΕ WSL Ͱग़དྷΔΑ
ࠓͲ͖ͷ;ͭ͏ͳ։ൃϑϩʔ 1. Zsh, fish, Tmux ͷڧྗͳCLIπʔϧ 2. ghq, peco/fzf ΛͬͨϩʔΧϧϦϙδτϦ
ͷ౷Ұతɾޮతͳཧ 3. Docker Compose ͷίϚϯυҰͭͰ։ൃ ڥ্ཱͪ͛
1. Zsh, fish, Tmux ͷڧྗͳCLI πʔϧ • ύοέʔδϚωʔδϟͰ;ͭ͏ʹΠϯετʔ ϧͰ͖ΔʢUbuntu ͷ߹ʣ
• $ sudo apt-get install zsh fish tmux • WSL ͱ Unix ܥ OS ͷ dotfiles Λڞ༗Ͱ͖Δ
2. ghq, peco/fzf ΛͬͨϩʔΧϧ ϦϙδτϦͷ౷Ұతɾޮతͳཧ • Windows -> WSL: ϑΝΠϧࢀরɾॻࠐɾ࣮ߦɹඇਪ
• WSL -> Windows: ϑΝΠϧࢀরɾॻࠐɾ࣮ߦɹOK • Windows ͷϑΝΠϧ /mnt/c/ ʹϘϦϡʔϜϚϯτ͞ΕΔ • Windows ͷϗʔϜσΟϨΫτϦԼʹϩʔΧϧϦϙδτϦΛ ஔ • WSL ͷϗʔϜσΟϨΫτϦʹ Windows ͷϗʔϜσΟϨΫτϦͷ ϩʔΧϧϦϙδτϦͷγϯϘϦοΫϦϯΫΛషΔ
γϯϘϦοΫϦϯΫΛషΔ $ ln -s /c/Users/xxxxx/src ~/src # => xxxxx ෦ҙͷϢʔβ໊
3. Docker Compose ͷίϚ ϯυҰͭͰ։ൃڥ্ཱͪ͛ • 2ͭͷน • Linux σʔϞϯ͕ಈ͔ͳ͍
• Docker Compose ͕ಈ͔ͳ͍
Linux σʔϞϯ͕ಈ͔ͳ͍
Linux σʔϞϯ͕ಈ͔ͳ͍ • Docker daemon ͕ಈ͔ͳ͍ • Docker Client
WSL ͷ·· • Docker daemon Docker for Windows Λ ͏
Linux σʔϞϯ͕ಈ͔ͳ͍ • Docker daemon ͕ಈ͔ͳ͍ • Docker Client
WSL ͷ·· • Docker daemon Docker for Windows Λ͏ • ࠓʢ2018ʣͷय़͔ΒσʔϞϯ͕ಈ͘Α͏ʹͳͬͨ • WSL ͚ͩͰ Docker ͕ಈ͘ʢୠ͠Ұ෦ͷVerݶఆʣ
Docker Compose ͕ಈ͔ͳ͍
Docker Compose ͕ಈ͔ͳ͍ • Docker for Windows ͷ Docker daemon
ͱ WSL ͷύεͷϛεϚονͰɺϘϦϡʔϜͷ૬ ରύεࢦఆ͕ಈ͔ͳ͍ • Docker for Windows: /c/ • WSL: /mnt/c/
Docker Compose ͕ಈ͔ͳ͍ • Docker for Windows ͷ Docker daemon
ͱ WSL ͷύεͷ ϛεϚονͰɺϘϦϡʔϜͷ૬ରύεࢦఆ͕ಈ͔ͳ͍ • Docker for Windows: /c/ • WSL: /mnt/c/ • ࠓʢ2018ʣͷय़͔Β WSL ͷϚϯτύεΛม͑ΕΔ • WSL /c/ ʹมߋ͢ΕϛεϚονղܾ
/etc/wsl.conf $ sudo vim /etc/wsl.conf [automount] root = / #
=> ઃఆޙɺWindowsΛ࠶ىಈ $ ln -s /c/Users/xxxxx/src ~/src # => લड़ͷϗʔϜσΟϨΫτϦͷγϯϘϦοΫϦϯΫ ͷύε͔Β /mnt ΛऔΔ
None
None
Unix ܥ OS Ͱͷ;ͭ͏Λ Windows ʹ
·ͱΊ • ;ͭ͏ਓʹΑͬͯೝ͕ࣝҧ͏ • ;ͭ͏ͷೝࣝΛ͋ΘͤΔͱ Rails ͷΑ͏ʹָͰ͖Δ • WSL ʹΑͬͯ
Unix ܥ OS Ͱͷ։ൃϑϩʔͷ “;ͭ͏” Λɺ Windows ʹऔΓೖΕΔ͜ͱ͕Ͱ͖ͨ • “;ͭ͏” ͷϨʔϧʹΕͨͷͰ Unix ܥ OS ͱ Windows ྆ํͰര։ൃͰ͖Δͧ