local dynamodb config

refs FOO-781

TEST PLAN:
 1) run global lookups init script from console
 2) nothing happens, it's a stub.
 3) checkout MRA with global lookups
 4) init script works, new table for lookups in DDB

Change-Id: I09e705e6448fd791b2c17a44f7bcae94060ed46c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/244182
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
This commit is contained in:
Ethan Vizitei 2020-08-03 13:45:27 -05:00
parent e165805de8
commit 86204f9671
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# to use this for global lookups add docker-compose/dynamodb.override.yml
# to your COMPOSE_FILE var in .env
# Then:
# - Run `GlobalLookups.initialize_ddb_for_development!` from a console
version: '2.3'
services:
web:
depends_on:
- "dynamodb"
links:
- dynamodb
environment:
AWS_ACCESS_KEY_ID: 'DUMMYIDEXAMPLE'
AWS_SECRET_ACCESS_KEY: 'DUMMYEXAMPLEKEY'
dynamodb:
image: instructure/dynamo-local-admin:latest
container_name: dynamodb-local
ports:
- "8000:8000"

View File

@ -21,4 +21,10 @@ module GlobalLookups
false false
end end
end end
unless singleton_class.method_defined?(:initialize_ddb_for_development!)
def self.initialize_ddb_for_development!
puts("Nothing to do for global lookups stub")
end
end
end end