mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
b456ea726d
* wip generate directory for hash content * cleanup, remove console logging * add content caching module * Return PDF stream ranges with compile response * Return the PDF file size in the compile response * PDF range endpoint * [misc] WIP: pdf caching: preserve the m-time on static content files * [misc] WIP: pdf caching: improve browser caching, emit caching headers * [misc] WIP: pdf caching: do not emit very small chunks <1kB * [misc] keep up with moving output files into a separate directory * [OutputCacheManager] add global feature flag for enabling pdf caching * [misc] add contentId into the URL for protecting PDF stream contents * [misc] support PDF stream caching for anonymous users * [misc] add per-request feature flag for enabling PDF stream caching * [misc] enable pdf caching in CI and emit metrics at the end of run * [misc] expose compile stats and timings to the frontend * [misc] log an error in case saving output files fails * [misc] add metrics for pdf bandwidth and pdf caching performance * [misc] add a dark mode to the pdf caching for computing ranges only * [misc] move pdf caching metrics into ContentCacheMetrics * [misc] add a config option for the min chunk size of pdf ranges Co-authored-by: Brian Gough <brian.gough@overleaf.com> Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
43 lines
1,014 B
YAML
43 lines
1,014 B
YAML
# This file was auto-generated, do not edit it directly.
|
|
# Instead run bin/update_build_scripts from
|
|
# https://github.com/sharelatex/sharelatex-dev-environment
|
|
|
|
version: "2.3"
|
|
|
|
services:
|
|
test_unit:
|
|
build:
|
|
context: .
|
|
target: base
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
environment:
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
command: npm run --silent test:unit
|
|
|
|
test_acceptance:
|
|
build:
|
|
context: .
|
|
target: base
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
extends:
|
|
file: docker-compose-config.yml
|
|
service: dev
|
|
environment:
|
|
ELASTIC_SEARCH_DSN: es:9200
|
|
REDIS_HOST: redis
|
|
QUEUES_REDIS_HOST: redis
|
|
MONGO_HOST: mongo
|
|
POSTGRES_HOST: postgres
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
LOG_LEVEL: ERROR
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
ENABLE_PDF_CACHING: "true"
|
|
command: npm run --silent test:acceptance
|
|
|