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
DynamoDB Localを手軽に使える 公式のDockerイメージ #akibaaws /...
Search
shoito
October 04, 2018
Technology
0
6.6k
DynamoDB Localを手軽に使える 公式のDockerイメージ #akibaaws / DynamoDB Local Docker Image
AKIBA.AWS #10で「DynamoDB Localを手軽に使える 公式のDockerイメージ」というタイトルで発表しました。
shoito
October 04, 2018
Tweet
Share
More Decks by shoito
See All by shoito
心を豊かにするひと工夫 / life-dev
shoito
0
75
ProfllyのSlack連携機能開発とチームの取り組み / proflly-slack-team-dev
shoito
0
1.1k
社員情報の可視化サービスを内製開発した話 / devio2020-story-of-development-voyager
shoito
1
21k
Slackの声を拾って勝手に業務改善してる話 / gw-improve-productivity
shoito
0
140
Amazon ECSを活用したAWS運用自動化サービスの裏側を包み隠さず解説 / inside opswitch
shoito
1
2.2k
勝手にサービスをカスタマイズ、簡単な仕事効率化術 / Improve productivity
shoito
0
1.1k
Feature Togglesとその実践 / Feature Toggles and Practice
shoito
0
260
niconicoの検索を支えるElasticsearch / niconico Elasticsearch
shoito
30
14k
Other Decks in Technology
See All in Technology
DUSt3R, MASt3R, MASt3R-SfM にみる3D基盤モデル
spatial_ai_network
2
140
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
130
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
160
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
36
14k
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
KubeCon NA 2024 Recap / Running WebAssembly (Wasm) Workloads Side-by-Side with Container Workloads
z63d
1
250
あの日俺達が夢見たサーバレスアーキテクチャ/the-serverless-architecture-we-dreamed-of
tomoki10
0
460
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
.NET 9 のパフォーマンス改善
nenonaninu
0
950
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
51
7.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
YesSQL, Process and Tooling at Scale
rocio
169
14k
GitHub's CSS Performance
jonrohan
1030
460k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Making the Leap to Tech Lead
cromwellryan
133
9k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
The Invisible Side of Design
smashingmag
298
50k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
Thoughts on Productivity
jonyablonski
67
4.4k
Transcript
%ZOBNP%#-PDBMΛखܰʹ͑Δ ެࣜͷ%PDLFSΠϝʔδ ҏ౻TIPJUP ͠ΐ͍ͱ "84ࣄۀຊ෦ϓϩμΫτάϧʔϓ ",*#""84
wҏ౻!TIPJUP w4PGUXBSF&OHJOFFS w"84ࣄۀຊ෦ ϓϩμΫτάϧʔϓॴଐ wத్ೖࣾ ࣗݾհ
ຊհ͢ΔΞοϓσʔτ
%ZOBNP%#-PDBM%PDLFSJNBHF
DynamoDBͷDLՄೳόʔδϣϯ DockerΠϝʔδ ͜ΕԿ͔ʁ
DynamoDBΛ͏γεςϜͷ ϩʔΧϧ։ൃͱςετ Կʹ͏ͷʁ
✤։ൃɾςετ࣌ͷ DynamoDB༻ྉແྉ ✤Πϯλʔωοτଓෆཁ ͏ϝϦοτʁ
੍ݶԿʁ wεϧʔϓοτઃఆແࢹ͞ΕΔ wฒྻεΩϟϯͰ͖ͳ͍ wʜ ˞μϯϩʔυՄೳͳ%ZOBNP%#ͱ%ZOBNP%#ΣϒαʔϏεͷҧ͍ IUUQTEPDTBXTBNB[PODPNKB@KQBNB[POEZOBNPECMBUFTUEFWFMPQFSHVJEF %ZOBNP%#-PDBM6TBHF/PUFTIUNM
DynamoDBͷDLՄೳόʔδϣϯ JavaͰಈ͘JARϑΝΠϧ (DynamoDBLocal.jar) %ZOBNP%#-PDBM%PDLFSJNBHF
࣌ͷΞοϓσʔτ
ੲ͔Βఏڙ͞Ε͍ͯͨϩʔΧϧ։ൃڥ(JAR)ͷ ެࣜͷDockerΠϝʔδ͕ఏڙ͞Εͨ ࠓճͷΞοϓσʔτ
Use Amazon DynamoDB Local More Easily with the New
Docker Image Posted On: Aug 22, 2018 ৽͍͠υοΧʔΠϝʔδͰ Amazon DynamoDBϩʔΧϧΛ͞Βʹ༰қʹ ߘ: Aug 22, 2018 ΞοϓσʔτλΠτϧ
%PDLFSίϯςφͲ͏ͳͬͯΔʁ DockerfileݟͨΒͳ͍ docker inspectͰݟͯΈΔ $ docker inspect amazon/dynamodb-local ... "Config":
{ ... "Cmd": [ "-jar", "DynamoDBLocal.jar", "-inMemory" ], ... "Entrypoint": [ "java" ], ... $ java -jar DynamoDBLocal.jar -inMemory
%PDLFS$PNQPTFʹΈࠐΉ $ docker-compose up version: “3” services: dynamodb: image: amazon/dynamodb-local
ports: - “8000:8000” db: image: mariadb:10.3 … docker-compose.yml
͜ͷ%PDLFSΠϝʔδͰؾΛ͚ͭΔ͜ͱ σϑΥϧτ͕-inMemoryͳͷͰɺ ίϯςφఀࢭޙσʔλ͕อଘ͞Εͳ͍ $ docker run -p 8000:8000 amazon/dynamodb-local Initializing
DynamoDB Local with the following configuration: Port: 8000 InMemory: true DbPath: null SharedDb: false shouldDelayTransientStatuses: false CorsParams: *
͜ͷ%PDLFSΠϝʔδͰؾΛ͚ͭΔ͜ͱ σϑΥϧτ͕-inMemoryͳͷͰɺ ίϯςφఀࢭޙσʔλ͕อଘ͞Εͳ͍ $ docker run -p 8000:8000 -v $PWD/data:/data
amazon/dynamodb-local -jar DynamoDBLocal.jar -dbPath /data
͜ͷ%PDLFSΠϝʔδͰؾΛ͚ͭΔ͜ͱ σϑΥϧτ͕-inMemoryͳͷͰɺ ίϯςφఀࢭޙσʔλ͕อଘ͞Εͳ͍ version: “3” services: dynamodb: image: amazon/dynamodb-local ports:
- “8000:8000” command: -jar DynamoDBLocal.jar -dbPath /data volumes: - $PWD/data:/data docker-compose.yml
✤DynamoDB Local(JAR)Λ ΈࠐΜͩDockerfileͷఆٛ ✤DockerΠϝʔδͷϏϧυ/ϓογϡ Կͱ͋Ε
ެࣜͷDockerΠϝʔδͷެ։ʹΑΓ ΦϨΦϨDockerΠϝʔδ͕ෆཁʹ Կͱ͋Ε
None
None