2019-02-19 09:51:34 -05:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
test_unit:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
|
|
user: node
|
2019-10-23 08:22:37 -04:00
|
|
|
command: npm run test:unit:app
|
2019-02-19 09:51:34 -05:00
|
|
|
|
|
|
|
test_acceptance:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
|
|
working_dir: /app
|
|
|
|
environment:
|
2020-05-06 06:01:59 -04:00
|
|
|
BCRYPT_ROUNDS: 1
|
2019-02-19 09:51:34 -05:00
|
|
|
REDIS_HOST: redis
|
|
|
|
MONGO_URL: "mongodb://mongo/sharelatex"
|
|
|
|
SHARELATEX_ALLOW_PUBLIC_ACCESS: 'true'
|
|
|
|
PROJECT_HISTORY_ENABLED: 'true'
|
|
|
|
ENABLED_LINKED_FILE_TYPES: 'url,project_file,project_output_file,mendeley,zotero'
|
|
|
|
LINKED_URL_PROXY: 'http://localhost:6543'
|
2020-06-01 04:37:34 -04:00
|
|
|
LOCK_MANAGER_MAX_LOCK_WAIT_TIME: 30000
|
2019-10-16 06:10:54 -04:00
|
|
|
NODE_ENV: test
|
2019-10-23 08:22:37 -04:00
|
|
|
SHARELATEX_CONFIG:
|
|
|
|
command: npm run test:acceptance:app
|
2019-02-19 09:51:34 -05:00
|
|
|
user: root
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
test_frontend:
|
|
|
|
build:
|
|
|
|
context: .
|
2019-02-25 08:18:42 -05:00
|
|
|
dockerfile: Dockerfile.frontend.ci
|
|
|
|
args:
|
|
|
|
PROJECT_NAME: $PROJECT_NAME
|
|
|
|
BRANCH_NAME: $BRANCH_NAME
|
|
|
|
BUILD_NUMBER: $BUILD_NUMBER
|
2019-02-19 09:51:34 -05:00
|
|
|
working_dir: /app
|
|
|
|
command: npm run test:frontend -- --single-run
|
2019-02-25 08:18:42 -05:00
|
|
|
user: node
|
2019-02-19 09:51:34 -05:00
|
|
|
|
|
|
|
tar:
|
|
|
|
build: .
|
|
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
|
|
volumes:
|
|
|
|
- ./:/tmp/build/
|
2020-05-22 06:34:57 -04:00
|
|
|
command: tar -cf /tmp/build/build.tar public/
|
2019-02-19 09:51:34 -05:00
|
|
|
user: root
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
|
|
|
|
mongo:
|
2020-01-08 08:40:07 -05:00
|
|
|
image: mongo:3.6.16
|