Created
April 24, 2014 22:40
-
-
Save jamesonjlee/11271979 to your computer and use it in GitHub Desktop.
dynamodb local setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install openjdk-7-jre-headless -y | |
cd /home/ubuntu/ | |
mkdir -p dynamodb | |
cd dynamodb | |
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest | |
tar -xvzf dynamodb_local_latest | |
rm dynamodb_local_latest | |
mv dynamodb_local_*/ dynamodb/ | |
cat >> dynamodb.conf << EOF | |
description "DynamoDB Local" | |
# | |
# http://aws.typepad.com/aws/2013/09/dynamodb-local-for-desktop-development.html | |
# | |
start on (local-filesystems and runlevel [2345]) | |
stop on runlevel [016] | |
chdir /home/ubuntu/dynamodb/dynamodb | |
setuid ubuntu | |
setgid ubuntu | |
exec java -Djava.library.path=. -jar DynamoDBLocal.jar | |
EOF | |
sudo cp /home/ubuntu/dynamodb/dynamodb.conf /etc/init/dynamodb.conf |
Here is an up-to-date version: https://gist.github.com/vedit/ec8b9b16d403a0dd410791ad62ad48ef
Thanks. I did some minor updates so it works as of March 2017:
https://gist.github.com/debnath/9ac1e1548a4cc7c6041d4ed744e3a5dd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is very helpful. Thank you. It does look as if the directory name has changed to DynamoDBLocal_lib.