Skip to content

Dynalite (DynamoDB Emulator) Docker Container with AWS CLI

License

Notifications You must be signed in to change notification settings

kpavlov/dynalite-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynalite (DynamoDB Emulator) Docker Container with AWS CLI

DockerHub Badge

This container runs 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.:

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:

version: '3.7'

services:
  dynamodb:
    image: kpavlov/dynalite
    ports:
      - '8000:8000'
    volumes:
    - ./test/initdb.sh:/initdb.sh

Run test.sh to try it.

About

Dynalite (DynamoDB Emulator) Docker Container with AWS CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published