Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Testing in Docker #2

Open
wants to merge 2 commits into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -0,0 +1,32 @@
# dynamodb

Run DynamoDB locally with Docker, more details at [github.com/dwmkerr/docker-dynamodb](https://github.com/dwmkerr/dynamodb):

```bash
docker run -p 8000:8000 dwmkerr/dynamodb
open http://localhost:8000/shell
```

Try it out by hitting the local shell:

![DynamoDB Local Shell Screenshot](https://raw.githubusercontent.com/dwmkerr/docker-dynamodb/master/assets/banner.jpg)

This container has full support for all of the commandline parameters in the [DynamoDB Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).

# Instructions

To run an ephemeral instance of DynamoDB:

```bash
docker run -p 8000:8000 dwmkerr/dynamodb
```

If you want to have persistent data, just mount a volume from your host and set it as a data directory for DynamoDB:

```bash
docker run -v /data:/data -p 8000:8000 dwmkerr/dynamodb -dbPath /data
```

# Coding

For development instructions, check the GitHub page at [github.com/dwmkerr/docker-dynamodb](https://github.com/dwmkerr/docker-dynamodb).
@@ -0,0 +1,14 @@
FROM docker:1.12

# Create a nice place to play
RUN mkdir -p /opt/test
WORKDIR /opt/test

# Copy over our test scripts.
COPY *.sh /opt/test/

CMD \
docker load && \
./test/basics.test.sh && \
./test/ephemeral.test.sh && \
./test/persistent.test.sh
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.