Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rails 開発環境としての Windows という選択肢
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
tikkss
July 14, 2018
Programming
520
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rails 開発環境としての Windows という選択肢
tikkss
July 14, 2018
Transcript
33 slides
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 ྆ํͰര։ൃͰ͖Δͧ
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
590
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
360
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
160
GraphQL の onError と Nullability のこれから
quramy
0
220
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
110
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.4k
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
920
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
490
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
270
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
The browser strikes back
jonoalderson
0
2k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
330
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Bash Introduction
62gerente
615
220k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
530
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
Prompt Engineering for Job Search
mfonobong
0
590
The Limits of Empathy - UXLibs8
cassininazir
2
790
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
How to build a perfect <img>
jonoalderson
1
6.2k