OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Docker file update for development and macOS documentation update (#19135)
Yauheni Suhakou25db0e6eee49
diff --git a/docker-compose.yml b/docker-compose.ymlindex c36ebf0c8d9..e18fe35c17d 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -89,7 +89,7 @@ services:- backenddb:- image: postgres:13+ image: postgres:17<<: *restart_policystop_grace_period: "3s"volumes:@@ -110,7 +110,7 @@ services:######### Testing stuff below ############db-test:- image: postgres:13+ image: postgres:17stop_grace_period: "3s"volumes:- "pgdata-test:/var/lib/postgresql/data"diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex 3e0f19e3d37..4ca47880570 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:3.4.4-bullseye AS develop+FROM ruby:3.4.4-bookworm AS developMAINTAINER [email protected]ARG DEV_UID=1000@@ -21,8 +21,13 @@ RUN groupmod -g $DEV_GID $USER || trueWORKDIR /home/$USERRUN apt-get update -qq && \+ apt-get install -y wget gnupg lsb-release curl && \+ echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \+ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \+ apt-get update && \DEBIAN_FRONTEND=noninteractive apt-get install -y \- postgresql-client libffi7 libffi-dev curl+ postgresql-client-17 libffi8 libffi-dev curl && \+ rm -rf /var/lib/apt/lists/*# Setup node source and install nodejs. Needed for running certain scripts in backend container,# as the `./scripts/api/validate_spec`.diff --git a/docs/development/development-environment/docker-macos/README.md b/docs/development/development-environment/docker-macos/README.mdindex 7ff3c7c3bb1..f4981cdeed6 100644--- a/docs/development/development-environment/docker-macos/README.md+++ b/docs/development/development-environment/docker-macos/README.md@@ -10,6 +10,29 @@ keywords: development setup docker macosThis guide covers observed nuances with the docker runtime on MacOS. Please ensure you've gone through the general [OpenProject development setup via docker](../docker) guide before proceeding.+### Apple Silicon (M1, M2, M3, M4)++Apple transitioned from Intel to Apple Silicon (ARM64) architecture starting in 2020. As a result, some Docker images — particularly those involving browsers like chrome and opera — still do not support ARM64 natively and require emulation via the linux/amd64 platform. However, other components like firefox, and chromium now have official ARM64-compatible images.++To ensure compatibility and improve performance on Apple Silicon, you can create a local `docker-compose.override.yml` file that selectively configures platform support:++```yaml+services:+ selenium-hub:+ platform: linux/amd64+ cuprite-chrome:+ platform: linux/arm64+ firefox:+ platform: linux/arm64+ opera:+ platform: linux/amd64+ chrome:+ image: selenium/node-chrome+ platform: linux/amd64+```+This setup leverages native performance where supported, and falls back to x86_64 emulation only when necessary.+> Note: If you’re using Docker Desktop or OrbStack, QEMU-based linux/amd64 emulation is handled automatically, but performance may vary depending on the image.+## Docker on MacOS File System PerformanceDocker on Mac is [known to have file system performance issues](https://github.com/docker/roadmap/issues/7) due to the fact that Docker runs in a virtual machine on MacOS.@@ -32,6 +55,13 @@ time docker compose exec backend-test bundle exec rspec spec/models/work_package| Colima Qemu | 469.08 real - Finished in 19.25 seconds (files took 7 minutes 22 seconds to load) | 270.75 real - Finished in 17.05 seconds (files took 4 minutes 5.9 seconds to load) || OrbStack + VirtioFS | 79.56 real - Finished in 7.74 seconds (files took 1 minute 9.49 seconds to load) | 41.04 real - Finished in 7.72 seconds (files took 31.7 seconds to load) |+The following is a benchmark performed on a _MacBook Pro, 2024 24 GB M4 Pro_++| Runtime | Run1 | Run2|+| -------- | ------- |-------|+| OrbStack + VirtioFS | Finished in 2.12 seconds (files took 7.16 seconds to load) | Finished in 1.95 seconds (files took 6.83 seconds to load) |++### Orbstack Installation_Ref Quick Start Guide [here](https://docs.orbstack.dev/quick-start)_