Merge pull request #6211 from overleaf/em-code-sharing

Change directory layout in service containers

GitOrigin-RevId: 09ff19db2a123cbf7691d51e9ce9be6eee264287
This commit is contained in:
Eric Mc Sween
2022-01-07 09:03:22 +00:00
committed by Copybot
parent 6ddbf23da0
commit f3f0be5c56
57 changed files with 225 additions and 210 deletions
+14 -12
View File
@@ -7,11 +7,12 @@ services:
test_unit:
build:
context: .
context: ../..
dockerfile: services/web/Dockerfile
target: base
volumes:
- .:/app
working_dir: /app
- .:/overleaf/services/web
working_dir: /overleaf/services/web
environment:
BASE_CONFIG:
SHARELATEX_CONFIG:
@@ -23,8 +24,8 @@ services:
test_acceptance:
image: node:14.18.1
volumes:
- .:/app
working_dir: /app
- .:/overleaf/services/web
working_dir: /overleaf/services/web
env_file: docker-compose.common.env
environment:
BASE_CONFIG:
@@ -45,22 +46,23 @@ services:
test_karma:
build:
context: .
dockerfile: Dockerfile.frontend
context: ../..
dockerfile: services/web/Dockerfile.frontend
volumes:
- .:/app
- .:/overleaf/services/web
environment:
NODE_OPTIONS: "--unhandled-rejections=strict"
working_dir: /app
working_dir: /overleaf/services/web
command: npm run --silent test:karma:single
test_frontend:
build:
context: .
context: ../..
dockerfile: services/web/Dockerfile
target: base
volumes:
- .:/app
working_dir: /app
- .:/overleaf/services/web
working_dir: /overleaf/services/web
environment:
MOCHA_GREP: ${MOCHA_GREP}
NODE_OPTIONS: "--unhandled-rejections=strict"