A local dynamoDB image, for developers to simulate a dynamoDB database locally
816
A local dynamoDB image, for development. It allows to simulate a dynamoDB database locally.
docker run -p 8000:8000 tribalnova/dynamodb
The databases are saved in /opt/dynamodb. Share this volume to make them persist.
docker run -p 8000:8000 -v ./dynamodb:/opt/dynamodb tribalnova/dynamodb
This container runs by default with the options -sharedDb and -delayTransientStatuses. To use different options, specify them as the docker run command.
-sharedDb creates a single database named shared-local-instance.db rather than one per AWS access key and AWS region.
If this option isn't set, when using the GUI, the AWS access key has to be configured.
-delayTransientStatuses adds a delay on some operations to simulate a closer behavior to the actual DynamoDB one.
When the container is running, a web GUI is available at http://localhost:8000/shell. It provides a browser console to run Javascript commands against the database. For instance, the following command displays all the database tables:
dynamodb.listTables({}, function(err, data) {
if (err) ppJson(err);
else ppJson(data);
});
If the is option sharedDb isn't set, the AWS access key has to be configured to perform queries on the right database.
Please refer to AWS documentation for instructions and examples.
Content type
Image
Digest
Size
283.2 MB
Last updated
almost 10 years ago
docker pull tribalnova/dynamodb