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
イベント駆動で成長して委員会
happymana
1
300
現場で役立つモデリング 超入門
masuda220
PRO
15
3.1k
色々なIaCツールを実際に触って比較してみる
iriikeita
0
320
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
170
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
540
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
4
740
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
670
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
3
430
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
550
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
450
みんなでプロポーザルを書いてみた
yuriko1211
0
230
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
YesSQL, Process and Tooling at Scale
rocio
168
14k
4 Signs Your Business is Dying
shpigford
180
21k
Happy Clients
brianwarren
97
6.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.2k
Agile that works and the tools we love
rasmusluckow
327
21k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
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 ྆ํͰര։ൃͰ͖Δͧ