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

Support dockerized environment #63

Closed
henhal opened this issue Jan 13, 2022 · 2 comments
Closed

Support dockerized environment #63

henhal opened this issue Jan 13, 2022 · 2 comments

Comments

@henhal
Copy link
Contributor

henhal commented Jan 13, 2022

Since I bought a MacBook with the M1 chip, all my projects using dynamodb-localhost (indirectly through serverless-dynamodb-local) are a pain, since the Java version of DynamoDB does not work on Apple Silicon.
There are several issues in dependent repos about this problem. StackOverflow's best answer is to install a separate Java environment within Rosetta, or even a separate entire brew installation, but this is really a hassle and comes with some issues.

I'm not sure if anyone is working on providing the missing (SQLite) library for arm64, but in the meantime, I was wondering if this project would be interested in offering support for running DynamoDB through docker, since that actually works fine on M1 macs?

It would save a ton of hassle for users who are today stuck with having to install Java under Rosetta 2 and then somehow get the rest of their environment running on native Apple architecture to interact with DynamoDB in a Java installation in an emulated i386 shell?

Basically the only difference is that instead of calling java -jar DynamoDB.jar <options> you call docker run -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDB.jar <options>, and I was thinking this could either be a new option within the options passed to start(), or a separate startDocker(), or possibly controlled through an environment variable.

I'd be happy to give a PR a shot if interesting.

@henhal
Copy link
Contributor Author

henhal commented Jan 13, 2022

I whipped up a PR #64, feedback appreciated!

@henhal
Copy link
Contributor Author

henhal commented Jun 13, 2022

Fixed by #64

@henhal henhal closed this as completed Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant