mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [packer] jenkins-worker: install htop and lsof * [web] trim tailing space in Jenkinsfile * [web] cleanup after finishing Jenkins pipeline * [server-ce] test: cleanup after finishing Jenkins pipeline * [saas-e2e] add timeout to waiting for rail/web startup * [monorepo] add 60s timeout for waiting on mongo to startup * [saas-e2e] cleanup after finishing Jenkins pipeline GitOrigin-RevId: 9954ab17b4db6a95c444e8e0b55cebb8d5daae59
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
# This file was auto-generated, do not edit it directly.
|
|
# Instead run bin/update_build_scripts from
|
|
# https://github.com/overleaf/internal/
|
|
|
|
services:
|
|
test_unit:
|
|
image: node:22.17.0
|
|
volumes:
|
|
- .:/overleaf/services/project-history
|
|
- ../../node_modules:/overleaf/node_modules
|
|
- ../../libraries:/overleaf/libraries
|
|
working_dir: /overleaf/services/project-history
|
|
environment:
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
LOG_LEVEL: ${LOG_LEVEL:-}
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
command: npm run --silent test:unit
|
|
user: node
|
|
|
|
test_acceptance:
|
|
image: node:22.17.0
|
|
volumes:
|
|
- .:/overleaf/services/project-history
|
|
- ../../node_modules:/overleaf/node_modules
|
|
- ../../libraries:/overleaf/libraries
|
|
- ../../bin/shared/wait_for_it:/overleaf/bin/shared/wait_for_it
|
|
working_dir: /overleaf/services/project-history
|
|
environment:
|
|
ELASTIC_SEARCH_DSN: es:9200
|
|
REDIS_HOST: redis
|
|
HISTORY_REDIS_HOST: redis
|
|
QUEUES_REDIS_HOST: redis
|
|
ANALYTICS_QUEUES_REDIS_HOST: redis
|
|
MONGO_HOST: mongo
|
|
POSTGRES_HOST: postgres
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
LOG_LEVEL: ${LOG_LEVEL:-}
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
user: node
|
|
depends_on:
|
|
mongo:
|
|
condition: service_started
|
|
redis:
|
|
condition: service_healthy
|
|
entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
|
|
command: npm run --silent test:acceptance
|
|
|
|
redis:
|
|
image: redis:7.4.3
|
|
healthcheck:
|
|
test: ping=$$(redis-cli ping) && [ "$$ping" = 'PONG' ]
|
|
interval: 1s
|
|
retries: 20
|
|
|
|
mongo:
|
|
image: mongo:8.0.11
|
|
command: --replSet overleaf
|
|
volumes:
|
|
- ../../bin/shared/mongodb-init-replica-set.js:/docker-entrypoint-initdb.d/mongodb-init-replica-set.js
|
|
environment:
|
|
MONGO_INITDB_DATABASE: sharelatex
|
|
extra_hosts:
|
|
# Required when using the automatic database setup for initializing the
|
|
# replica set. This override is not needed when running the setup after
|
|
# starting up mongo.
|
|
- mongo:127.0.0.1
|
|
|