2021-02-02 15:33:33 +01:00
|
|
|
|
2023-10-27 18:30:14 +02:00
|
|
|
name: "openproject-ci"
|
|
|
|
|
|
2021-02-02 15:33:33 +01:00
|
|
|
services:
|
2023-11-22 17:41:55 +01:00
|
|
|
# Note: not using a database container since it adds 1min to pull and start it on CI
|
|
|
|
|
app:
|
|
|
|
|
image: openproject/ci:v1
|
2021-02-02 15:33:33 +01:00
|
|
|
build:
|
2023-06-15 21:04:54 +02:00
|
|
|
context: .
|
|
|
|
|
dockerfile: ./docker/ci/Dockerfile
|
2026-02-02 16:11:17 +01:00
|
|
|
platforms:
|
|
|
|
|
- linux/amd64
|
2023-10-27 18:30:14 +02:00
|
|
|
args:
|
|
|
|
|
- APP_USER_UID
|
|
|
|
|
- APP_USER_GID
|
|
|
|
|
- RUBY_VERSION
|
2021-02-02 15:33:33 +01:00
|
|
|
environment:
|
2023-05-17 09:44:36 +00:00
|
|
|
CI_JOBS: "${CI_JOBS}"
|
2024-11-12 14:41:50 +01:00
|
|
|
RSPEC_RETRY_RETRY_COUNT: "${CI_RETRY_COUNT:-4}"
|
2021-03-16 16:15:25 +01:00
|
|
|
CAPYBARA_AWS_ACCESS_KEY_ID: "${CAPYBARA_AWS_ACCESS_KEY_ID}"
|
|
|
|
|
CAPYBARA_AWS_SECRET_ACCESS_KEY: "${CAPYBARA_AWS_SECRET_ACCESS_KEY}"
|
2021-02-02 15:33:33 +01:00
|
|
|
tmpfs:
|
|
|
|
|
- "/tmp"
|
|
|
|
|
volumes:
|
2023-10-27 18:30:14 +02:00
|
|
|
- .:/app
|
2023-11-23 15:07:17 +01:00
|
|
|
- ${LOCAL_CACHE_PATH}/node/.npm:/app/.npm
|
|
|
|
|
- ${LOCAL_CACHE_PATH}/node/node_modules:/app/node_modules
|
|
|
|
|
- ${LOCAL_CACHE_PATH}/node/frontend/node_modules:/app/frontend/node_modules
|
2023-10-27 18:30:14 +02:00
|
|
|
- ${LOCAL_CACHE_PATH}/bundle:/usr/local/bundle
|
|
|
|
|
- ${LOCAL_CACHE_PATH}/angular:/app/frontend/.angular/cache
|
|
|
|
|
- ${LOCAL_CACHE_PATH}/runtime-logs:/app/spec/support/runtime-logs
|