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

Automated download #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vweevers
Copy link
Contributor

Instead of bundling DynamoDB Local (and trusting PR's of strangers to upgrade it), I'd rather have local-dynamo download the code directly from Amazon. Added benefits:

  • Choose a specific version: launch({ version: "2015-07-16_1.0" })
  • Saves the code globally in ~/.local-dynamo/[version], so it only has to download once. This keeps the package small.

Though I realize this is a significant change (and breaks the API because of asynchronicity), I hope it's worth your consideration. And if not, it could also be adapted to a build script, for easy upgrades.

@cvburgess
Copy link

Hey @vweevers this is a GREAT idea and one my team was talking about. Does your implementation work? Do you mind if we fork?

@vweevers
Copy link
Contributor Author

I haven't used local-dynamo since a short while after submitting this PR. But it worked well. There was one issue with HTTP redirects, in the download module. But that has been fixed.

So if you fork (no need to ask 👍), be sure to update the download and download-status dependencies. One more thing: another dependency, path-exists, switched from callbacks to Promises, so you either need to adapt the code, or pin path-exists to 1.0.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants