Skip to content

Instantly share code, notes, and snippets.

@anupkrbid
Created December 21, 2017 22:44
Show Gist options
  • Save anupkrbid/36e27834fff1b6ed20e7194a2477696b to your computer and use it in GitHub Desktop.
Save anupkrbid/36e27834fff1b6ed20e7194a2477696b to your computer and use it in GitHub Desktop.
install_dynamodb_locally
#!/bin/bash
wget https://s3.ap-south-1.amazonaws.com/dynamodb-local-mumbai/dynamodb_local_latest.tar.gz
tar -xvzf dynamodb_local_latest.tar.gz -C ./LocalDynamoDB/
rm dynamodb_local_latest.tar.gz
cd LocalDynamoDB
#java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
cat dynamo > java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
cat > dynamo <<EOF
!/bin/bash
java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
EOF
#cat <<'EOF' >> dynamo
#!/bin/bash
#
#java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
#EOF
sudo chmod +x dynamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment