mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
* fix: correct typedef for Document in helpers.mjs * add move-migrations codemod * update migration paths to use shared migrations directory * move migrations to shared location * fix: update Dockerfile and docker-compose.ci.yml to include migrations directory * feat: add migrations tool to workspaces in package.json * [monorepo] Fix order of docker ignore rules * [web] remove unused docker ignore file * [monorepo] replace old references to migrations folder * [server-ce] copy migrations from new place * [migrations] Inline web scripts Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [migrations] move three web scripts over Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [migrations] add missing collection Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [migrations] remove lodash dependency Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [migrations] avoid mongodb-legacy dependency Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [monorepo] run migrations from tools/migrations Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [migrations] simplify migration for adding gitBridge feature to users * [monorepo] run migrations from tests in all the services * [migrations] add Jenkins pipeline for linting/formatting * [monorepo] fixup running web migrations everywhere * [monorepo] trigger Jenkins builds on changes to mongo migrations * [migrations] add Jenkins pipeline for linting/formatting * [monorepo] build scripts: update devDependencies before deps scanning * [monorepo] build scripts: formerly depend on tools/migrations * [monorepo] run eslint on .mjs files * [migrations] enable more eslint rules and fix all the errors * [rake] fix migrations:list task --------- Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> GitOrigin-RevId: 14cf69cc1b9405bbc75adbb9a000e555500e0614
85 lines
2.8 KiB
YAML
85 lines
2.8 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.18.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:
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
LOG_LEVEL: ${LOG_LEVEL:-}
|
|
MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
REDIS_HOST: redis_test
|
|
HISTORY_REDIS_HOST: redis_test
|
|
QUEUES_REDIS_HOST: redis_test
|
|
ANALYTICS_QUEUES_REDIS_HOST: redis_test
|
|
entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
|
|
command: npm run --silent test:unit
|
|
user: node
|
|
depends_on:
|
|
mongo:
|
|
condition: service_started
|
|
redis_test:
|
|
condition: service_healthy
|
|
|
|
test_acceptance:
|
|
image: node:22.18.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
|
|
- ../../tools/migrations:/overleaf/tools/migrations
|
|
working_dir: /overleaf/services/project-history
|
|
environment:
|
|
ELASTIC_SEARCH_DSN: es:9200
|
|
REDIS_HOST: redis_test
|
|
HISTORY_REDIS_HOST: redis_test
|
|
QUEUES_REDIS_HOST: redis_test
|
|
ANALYTICS_QUEUES_REDIS_HOST: redis_test
|
|
MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
|
|
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_test:
|
|
condition: service_healthy
|
|
entrypoint: /overleaf/bin/shared/wait_for_it mongo:27017 --timeout=60 --
|
|
command: npm run --silent test:acceptance
|
|
|
|
redis_test:
|
|
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
|
|
- ../../bin/shared/mongodb-docker-entrypoint-wait.sh:/mongodb-docker-entrypoint-wait.sh
|
|
entrypoint: /mongodb-docker-entrypoint-wait.sh
|
|
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
|
|
|