File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ dynamodbLocal.install({ path: '../.dynamodb' });
1212dynamodbLocal . install ( '../.dynamodb' ) ;
1313
1414dynamodbLocal . start ( { port : 1234 } ) ;
15+ dynamodbLocal . start ( { docker : true } ) ;
1516// @ts -expect-error
1617dynamodbLocal . start ( ) ;
1718
Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ export interface Options {
4141 */
4242 dbPath ?: string ;
4343
44+ /**
45+ * If true, starts DynamoDB using docker, e.g.
46+ * docker run -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -port 8000 -sharedDb -inMemory
47+ * The docker executable may be customized using process.env.DOCKER_PATH, and the docker image through
48+ * process.env.DOCKER_IMAGE.
49+ * Default: false
50+ */
51+ docker ?: boolean ;
52+
4453 /**
4554 * If true, DynamoDB local will use a single database file and all DynamoDB clients will interact
4655 * with the same set of tables regardless of their region and credential configuration.
You can’t perform that action at this time.
0 commit comments