[monorepo] Try to get make install working in copilot (#32800)

* [monorepo] move building of nginx proxy into Makefile

* [v1] add fake-secrets.env

* [github] add copilot-setup-steps.yml workflow

* [make] debug permissions

* [monorepo] use the host uid/gid for monorepo service

* [web] populate DOCKER_USER for test_frontend_ct

* [github] run npm install outside docker in Copilot sandbox

* [monorepo] add comment for building nginx-proxy image locally

* [monorepo] change uid/gid of node user in cypress image

* [monorepo] low-level rewrite of passwd and groups to match host user

GitOrigin-RevId: d74a5801f0318bab7e7f460374255426706002a3
This commit is contained in:
Jakob Ackermann
2026-04-17 11:03:28 +02:00
committed by Copybot
parent e301030c09
commit 78adc2ae18
9 changed files with 57 additions and 13 deletions

View File

@@ -13,7 +13,8 @@ export IMAGE_TAG_CE ?= sharelatex/sharelatex:main
export IMAGE_TAG_PRO ?= us-east1-docker.pkg.dev/overleaf-ops/ol-docker/pro:main
export CYPRESS_SHARD ?=
export COMPOSE_PROJECT_NAME ?= test
export DOCKER_USER := $(shell id -u):$(shell id -g)
export USER_UID=$(shell id -u)
export USER_GID=$(shell id -g)
IMAGE_TAG_PRO_BASE := $(shell echo $(IMAGE_TAG_PRO) | sed -E s/:.+//)
test-e2e-native:
@@ -106,4 +107,8 @@ build_mailtrap:
git clone https://github.com/dbck/docker-mailtrap.git || true && cd docker-mailtrap && git checkout v1.5.0
docker build -t mailtrap docker-mailtrap/build
prefetch_default_compose_build: build_cypress
build_cypress:
docker compose build e2e
.PHONY: test-e2e test-e2e-open

View File

@@ -25,7 +25,11 @@ services:
# For testing "native" on Linux
cypress:
image: cypress/included:13.13.2
build:
context: ../../dockerfiles/cypress
args:
- USER_UID
- USER_GID
volumes:
- ../../:/overleaf
- /tmp/.X11-unix:/tmp/.X11-unix
@@ -33,7 +37,6 @@ services:
working_dir: /overleaf/server-ce/test
entrypoint: npm
command: run cypress:open
user: "${DOCKER_USER:-1000:1000}"
environment:
CI:
VERBOSE_LOGGING:

View File

@@ -66,7 +66,11 @@ services:
command: ["/server-pro-start.sh"]
e2e:
image: cypress/included:13.13.2
build:
context: ../../dockerfiles/cypress
args:
- USER_UID
- USER_GID
stop_grace_period: 0s
entrypoint: npm
command: run cypress:run
@@ -76,7 +80,6 @@ services:
- $PWD:$PWD
- $MONOREPO/libraries:$MONOREPO/libraries:ro
- $MONOREPO/node_modules:$MONOREPO/node_modules:ro
user: "${DOCKER_USER:-1000:1000}"
environment:
MONOREPO:
CYPRESS_SHARD: