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
意識の低いDockerの使い方
Search
Takuya Arita
February 06, 2016
Programming
2.2k
6
Share
意識の低いDockerの使い方
CROSS2016 アンカンファレンスの資料です
Takuya Arita
February 06, 2016
More Decks by Takuya Arita
See All by Takuya Arita
Hosted Redash の EOL と移行ツール redash-migrate / You should know about Hosted Redash EOL and redash-migrate
ariarijp
0
3.3k
Redash で踏み出す BI 導入はじめの一歩 / DataEngineeringStudy Redash
ariarijp
1
2.6k
Redash のいま / Redash in 2021
ariarijp
2
1.1k
Redash 導入・運用を4年ぐらいやって変わったこと・変わらなかったこと / Changed and unchanged things with Redash and me
ariarijp
0
1.4k
5年前の自分に伝えたい広告 API 周辺の歩き方 / SOT Tech Night vol.1
ariarijp
1
530
使われていない、を知る / How do we know unused things in the real world?
ariarijp
0
460
MULTI_ORG について / What is MULTI_ORG in Redash
ariarijp
1
3.8k
あらためて振り返る Redash の使いどころ / Why I strongly recommend Redash
ariarijp
2
1.3k
PHP Data Structures
ariarijp
1
570
Other Decks in Programming
See All in Programming
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
220
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
310
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
810
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
130
PHPで TLSのプロトコルを実装してみる
higaki_program
0
740
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
380
Feature Toggle は捨てやすく使おう
gennei
0
420
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.8k
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
1.5k
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
230
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
8
4.7k
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Paper Plane
katiecoart
PRO
1
49k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The Spectacular Lies of Maps
axbom
PRO
1
680
Building AI with AI
inesmontani
PRO
1
860
How to make the Groovebox
asonas
2
2.1k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
95
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
200
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Producing Creativity
orderedlist
PRO
348
40k
Transcript
ҙࣝͷ͍ Dockerͷ͍ํ @ariarijp
w !BSJBSJKQ 5BLVZB"SJUB w גࣜձࣾίίϥϒϧ ιϑτΣΞΤϯδχΞ ࣗݾհ ฐࣾऔక͕ॻ͖·ͨ͠ એ
ຊ
ࠓDockerͷ ηογϣϯ͕͋Γ·ͨ͠
ΞϓϦέʔγϣϯΛDockerize͢Ε 30ԯͷσόΠεͰΔ͕དྷΔ͔͠Ε·ͤΜ
͍͢͝ɻ͚Ͳ
ͦ͜·Ͱ͠ͳͯ͘ Docker͑ΔͷͰ
ͨͱ͑
C
S
V
CSV Comma-Separated Values
CSVΛͪΐͬͱՃ͢Δͷʹ DockerΛͬͨΛ͠·͢
͓
ͱ͋Δࠂӡ༻୲ऀ
ʮCSVϑΝΠϧͷूܭ͕େมͰɻɻʯ
(ͦΕExcelͰɾɾɾ)
ʮ13ສߦ͙Β͍͋ͬͯɻɻʯ
None
͝ΊΜɻख͏Θ
MySQL͔Կ͔ʹCSV ͿͪࠐΊ͋ͱ༨༟͡ΌΜ
ͨͱ͑VagrantͰڥ࡞ͬͯ ͝ʹΐ͝ʹΐͰܰ͘ࡁΉ
ͦΕͩͱ໘ന͘ͳ͔ͬͨͷͰ DockerͰͬͯΈͨ
Ͳ͏͔ͬͨ • ݩσʔλΛΒ͏ • σʔλݟͯCREATE TABLEͱ͔ඞཁͳSQLΛͪΐͬ ͱॻ͘ • Dockerfileͱͪΐͬͱͨ͠γΣϧεΫϦϓτΛॻ͘ •
docker build ͯ͠ docker run ͨ͠ΒCSVϑΝΠϧ͕ Ͱ͖͍ͯΔ
σϞ $ git clone https://github.com/ariarijp/dockerfiles.git $ cd dockerfiles/cross2016 $ docker
build -t ariarijp/cross2016 . $ docker run --rm -it -v `pwd`:/mnt/docker ariarijp/cross2016
Ҏ্ɺҙࣝΊͷσϞ
ͪΐͬͱ·͍ͬͯͩ͘͞
͔ͨ͠ʹ͜Εҙࣝͷ͍ ͍ํͰ͕͢
DockerΛ͑ σʔλϕʔεΛ͍ࣺͯΒΕΔ
ͳΜ͔͍͢͝
ͳΜ͔͍͢͝ʂʂ
Ҏ্