Skip to content

Instantly share code, notes, and snippets.

@keynmol
Created August 7, 2020 12:42
Show Gist options
  • Save keynmol/4095142c7feac0ddd8cd807b779c906a to your computer and use it in GitHub Desktop.
Save keynmol/4095142c7feac0ddd8cd807b779c906a to your computer and use it in GitHub Desktop.
Running DynamoDB local from inside of the Ammonite script (OS X)
  1. You'll need platform-dependent binaries for SQLite4Java (that's what local dynamo is using under the hood): https://bitbucket.org/almworks/sqlite4java/src/master/
  2. put them in native-libs folder at the root of your project
  3. In your script you'll need to set
System.setProperty("sqlite4java.library.path", "native-libs")
  1. When you run it first, it won't work. You need to skip Catalina's notarization:

    xattr -d com.apple.quarantine native-libs/libsqlite4java-osx.dylib
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment