-
Notifications
You must be signed in to change notification settings - Fork 29
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
Added dynamodb installation script #24
Added dynamodb installation script #24
Conversation
echo " " | ||
echo "Dynamodb-local is installed and ready for use.... :) " | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought: I guess we could also look into installing: https://github.com/localstack/localstack
rm -f dynamodb_local_latest.tar.gz | ||
|
||
echo " " | ||
echo "Dynamodb-local is installed and ready for use.... :) " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be useful to add the command to start, how to ping the local installation, and a link to the docs.
echo "Dynamodb-local is installed and ready for use.... :) " | |
echo "Dynamodb-local is installed and ready for use.... :) | |
To run DynamoDB locally: java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb | |
To point AWS CLI to Local DynamoDB: aws dynamodb list-tables --endpoint-url http://localhost:8000 | |
For more details, see the documentation: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html#DynamoDBLocal.DownloadingAndRunning.title | |
" |
echo "java is installed sucessfully.... :) " | ||
echo " " | ||
echo " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can add \n
for newline, if you wanted to.
echo "java is installed sucessfully.... :) " | |
echo " " | |
echo " " | |
echo "java is installed sucessfully.... :) \n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small note added about the docs, but it does work, would be happy to merge! 🚀
Thanks @keenson 😁 🎸
|
||
echo " " | ||
echo "Dynamodb-local is installed and ready for use.... :) " | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would also be quite cool if we started a Makefile for the project to keep scripts together
If we added:
start-dynamodb-local:
cd dynamolocal && java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
To a root file called Makefile
then we can have the command: make start-dynamodb-local
that will run this command for us in a shorthand. Not necessary for this PR though, I've also made an issue:
This PR includes a script to setup dynamodb local.