Sign inSign up

tribalnova/dynamodb

By tribalnova

•Updated almost 10 years ago

A local dynamoDB image, for developers to simulate a dynamoDB database locally

Image
1

816

tribalnova/dynamodb repository overview

⁠Tribalnova local DynamoDB image

tribalnova/dynamodb⁠

A local dynamoDB⁠ image, for development. It allows to simulate a dynamoDB database locally.

⁠Usage

⁠To run the image

 docker run -p 8000:8000 tribalnova/dynamodb

⁠To use a persistent storage

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

⁠Options

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.

⁠GUI

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.

Tag summary

Content type

Image

Digest

Size

283.2 MB

Last updated

almost 10 years ago

docker pull tribalnova/dynamodb