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

Added dynamodb installation script #24

Merged
merged 2 commits into from
Jan 16, 2023

Conversation

keenson
Copy link
Collaborator

@keenson keenson commented Jan 9, 2023

This PR includes a script to setup dynamodb local.

@keenson keenson marked this pull request as ready for review January 9, 2023 09:58
echo " "
echo "Dynamodb-local is installed and ready for use.... :) "


Copy link
Collaborator

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.... :) "
Copy link
Collaborator

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.

Suggested change
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
"

Comment on lines +8 to +10
echo "java is installed sucessfully.... :) "
echo " "
echo " "
Copy link
Collaborator

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.

Suggested change
echo "java is installed sucessfully.... :) "
echo " "
echo " "
echo "java is installed sucessfully.... :) \n\n"

Copy link
Collaborator

@loujaybee loujaybee left a 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.... :) "

Copy link
Collaborator

@loujaybee loujaybee Jan 15, 2023

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:

@yaya2devops yaya2devops merged commit 1324b32 into openupthecloud:main Jan 16, 2023
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.

3 participants