-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add support for dockerized DynamoDBLocal #64
Conversation
This adds a new option which if true starts DynamoDB using docker, e.g. docker run -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -port 8000 -sharedDb -inMemory The docker executable may be customized using process.env.DOCKER_PATH, and the docker image through provess.env.DOCKER_IMAGE. Enabling support for docker resolves some issues with running the DynamoDB Java server on incompatible architectures such as Apple M1.
Fixes #63. |
If this is accepted, I intend to make a PR on https://github.com/99x/serverless-dynamodb-local/blob/v1/index.js to support Would it be more desirable to have the option as an object, such as
... or are you find with a simple Updates to |
I'm also interested by this PR. It could be great if it can be merged. Maybe we should tag here the maintainer. They also put an email adresss in the README file? |
@AshanFernando In order to proceed with 99x/serverless-dynamodb-local#279 I need a new released version of |
Hello. I know that the new versions of this plugin and I tried |
@lsalazarm99 Sorry if a stupid suggestion, but did you confirm that the unreleased version was in use? I mean, did serverless-dynamodb-local's I did try this use-case successfully using
|
Doh, I missed the part about how it worked from |
This adds a new option which if true starts DynamoDB using docker.
Enabling support for docker resolves some issues with running the DynamoDB Java server on incompatible
architectures such as Apple M1.
If the option
docker
is truthy, instead of spawning ajava
process, adocker
process is spawned, such asThe same arguments are supported as when running DynamoDBLocal using java on the localhost.
Customization:
The following environment variables may be used to customize the docker behaviour: