mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 20:41:57 +00:00
Add fake s3 server and initial config
This commit is contained in:
parent
86b9e4b53a
commit
96457597ac
3 changed files with 24 additions and 0 deletions
|
@ -16,6 +16,7 @@ settings =
|
|||
s3:
|
||||
key: process.env['AWS_KEY']
|
||||
secret: process.env['AWS_SECRET']
|
||||
endpoint: process.env['AWS_S3_ENDPOINT']
|
||||
stores:
|
||||
user_files: process.env['AWS_S3_USER_FILES_BUCKET_NAME']
|
||||
template_files: process.env['AWS_S3_TEMPLATE_FILES_BUCKET_NAME']
|
||||
|
|
|
@ -25,9 +25,16 @@ services:
|
|||
ENABLE_CONVERSIONS: "true"
|
||||
MOCHA_GREP: ${MOCHA_GREP}
|
||||
NODE_ENV: test
|
||||
AWS_KEY: fake
|
||||
AWS_SECRET: fake
|
||||
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
||||
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
||||
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
||||
AWS_S3_ENDPOINT: http://fakes3:9090
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
- fakes3
|
||||
user: node
|
||||
command: npm run test:acceptance:_run
|
||||
|
||||
|
@ -46,3 +53,7 @@ services:
|
|||
|
||||
mongo:
|
||||
image: mongo:3.4
|
||||
|
||||
fakes3:
|
||||
image: adobe/s3mock
|
||||
command: --initialBuckets=fake_user_files,fake_template_files,fake_public_files
|
||||
|
|
|
@ -31,10 +31,17 @@ services:
|
|||
ENABLE_CONVERSIONS: "true"
|
||||
LOG_LEVEL: ERROR
|
||||
NODE_ENV: test
|
||||
AWS_KEY: fake
|
||||
AWS_SECRET: fake
|
||||
AWS_S3_USER_FILES_BUCKET_NAME: fake_user_files
|
||||
AWS_S3_TEMPLATE_FILES_BUCKET_NAME: fake_template_files
|
||||
AWS_S3_PUBLIC_FILES_BUCKET_NAME: fake_public_files
|
||||
AWS_S3_ENDPOINT: http://fakes3:9090
|
||||
user: node
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
- fakes3
|
||||
command: npm run test:acceptance
|
||||
|
||||
|
||||
|
@ -53,4 +60,9 @@ services:
|
|||
mongo:
|
||||
image: mongo:3.4
|
||||
|
||||
fakes3:
|
||||
image: adobe/s3mock
|
||||
environment:
|
||||
- initialBuckets=fake_user_files,fake_template_files,fake_public_files
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue