How to install dynamodb-local


#1

I’d like to install dynamodb-local, a localhost version of AWS DynamoDB, on the circleci host, so that my tests will be faster, more reliable and not risk connecting to my actual AWS account. I have this working locally on my personal Macbook Pro, but I’m not sure how to install dynamodb-local on circleci.

Here are some links:

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html

Thoughts? A tutorial written by you would be awesome … :wink:

Thanks!


DynamoDB Local
#2

Here’s how I do it:

machine:
  environment:
    _JAVA_OPTIONS: "-Xms512m -Xmx1024m"

  java:
    version: openjdk7
  post:
    - curl -k -L -o dynamodb-local.tgz http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
    - tar -xzf dynamodb-local.tgz
    - java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb:
        background: true

Hope that helps.


#3