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
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
意識の低い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.7k
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
540
使われていない、を知る / How do we know unused things in the real world?
ariarijp
0
470
MULTI_ORG について / What is MULTI_ORG in Redash
ariarijp
1
3.9k
あらためて振り返る Redash の使いどころ / Why I strongly recommend Redash
ariarijp
2
1.3k
PHP Data Structures
ariarijp
1
570
Other Decks in Programming
See All in Programming
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
270
ふつうのFeature Flag実践入門
irof
7
4k
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
550
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
660
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
180
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
Claspは野良GASの夢をみるか
takter00
0
200
その問い、本当に正しいですか?AI時代のエンジニアに必要な哲学と認知科学 / ai-philosophy-cognitive-science
minodriven
11
5.8k
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.2k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
260
C# and C++ Interoperability - cho-dotnetnew
harukasao
0
250
スマートグラスで並列バイブコーディング
hyshu
0
150
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.4k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
210
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
590
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Tell your own story through comics
letsgokoyo
1
960
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
180
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
200
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
200
Marketing to machines
jonoalderson
1
5.5k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
720
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
370
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Λ͑ σʔλϕʔεΛ͍ࣺͯΒΕΔ
ͳΜ͔͍͢͝
ͳΜ͔͍͢͝ʂʂ
Ҏ্