Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kpavlov/dynalite-docker
Dynalite (DynamoDB Emulator) Docker Container with AWS CLI
https://github.com/kpavlov/dynalite-docker
aws-cli aws-dynamodb docker dynalite dynamodb
Last synced: 22 days ago
JSON representation
Dynalite (DynamoDB Emulator) Docker Container with AWS CLI
- Host: GitHub
- URL: https://github.com/kpavlov/dynalite-docker
- Owner: kpavlov
- License: gpl-3.0
- Created: 2020-03-30T06:59:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T07:00:19.000Z (almost 5 years ago)
- Last Synced: 2024-12-08T12:25:15.665Z (about 1 month ago)
- Topics: aws-cli, aws-dynamodb, docker, dynalite, dynamodb
- Language: Shell
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Dynalite (DynamoDB Emulator) Docker Container with AWS CLI
[![](https://images.microbadger.com/badges/image/kpavlov/dynalite.svg)](https://microbadger.com/images/kpavlov/dynalite)
[![](https://images.microbadger.com/badges/version/kpavlov/dynalite.svg)](https://microbadger.com/images/kpavlov/dynalite)[![DockerHub Badge](http://dockeri.co/image/kpavlov/dynalite)](https://hub.docker.com/r/kpavlov/dynalite)
This container runs [Dynalite][dynalite] (Amazon's DynamoDB emulator) with initialization script.
AWS CLI is also installed.You may mount a shell script as `/initdb.sh` to run custom commands after Dynalite instance is started.
Don't forget to include `$AWS_CLI_OPTIONS` in `aws` command arguments, e.g.:~~~bash /initdb.sh
aws dynamodb list-tables $AWS_CLI_OPTIONS
~~~Build:
docker build --force-rm --no-cache -t kpavlov/dynalite .
Running:docker run --rm --name dynalite -p 8000:8000 --volume "$(pwd)/test/initdb.sh:/initdb.sh" -it kpavlov/dynalite
Running in docker-compose:```dicker-compose.yml
version: '3.7'services:
dynamodb:
image: kpavlov/dynalite
ports:
- '8000:8000'
volumes:
- ./test/initdb.sh:/initdb.sh
```Run `test.sh` to try it.
[cli-options]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html#DynamoDBLocal.CommandLineOptions
[dynalite]: https://github.com/mhart/dynalite "An implementation of Amazon's DynamoDB built on LevelDB"