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.5k
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
71
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
250
niconicoの検索を支えるElasticsearch / niconico Elasticsearch
shoito
30
14k
Other Decks in Technology
See All in Technology
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
いざ、BSC討伐の旅
nikinusu
2
780
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
390
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
6
660
強いチームと開発生産性
onk
PRO
35
11k
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
190
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
180
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
320
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
500
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
390
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1k
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.7k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
50
7.2k
Teambox: Starting and Learning
jrom
133
8.8k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Embracing the Ebb and Flow
colly
84
4.5k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
KATA
mclloyd
29
14k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Navigating Team Friction
lara
183
14k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
What's in a price? How to price your products and services
michaelherold
243
12k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
It's Worth the Effort
3n
183
27k
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