17 Commits

Author SHA1 Message Date
Cyril Rohr d482f1f708 Fix docker bloat (#21948)
* Refactor Docker build/runtime stages for slimmer images

Split runtime and build dependencies into separate stages and build the app in a dedicated stage before runtime copy.

Add a slim prune stage that removes non-runtime source trees, source maps, duplicate enterprise source videos, module test/doc folders, and extra vendored gem artifacts.

This ensures bytes are removed before the final slim copy, so layer size actually decreases while keeping runtime behavior intact.

* Add target-specific Docker image validation in CI

Introduce script/ci/docker_validate_image.sh with validations for slim, slim-bim, and all-in-one images.

Checks include runtime binary presence/absence, plugin asset/module integrity, slim pruning expectations, BIM tooling, and all-in-one API startup/embedded services.

Update docker workflow to run the validator for every matrix target before push.

* fix

* Generate YAML-safe auto Hocuspocus secret

All-in-one startup auto-generates OPENPROJECT_COLLABORATIVE__EDITING__HOCUSPOCUS__SECRET in the entrypoint.

Environment overrides are parsed through YAML, so leading punctuation in the previous charset (e.g. %) could trigger Psych parsing errors and abort boot.

Restrict generated secret characters to alphanumeric to keep parsing stable while preserving high entropy.

* Fix all-in-one hocuspocus runtime and validation

* Fix all-in-one memcached startup handover
2026-02-11 10:40:54 +01:00
Markus Kahl 6cb50e9359 ignore development database.yml during local docker builds 2024-09-20 15:29:40 +01:00
Oliver Günther c05d5f717c Allow spec/support 2024-08-21 21:05:49 +02:00
Oliver Günther 4de484c4dc Ignore spec, but allow factories 2024-08-21 20:24:37 +02:00
Oliver Günther 048e5845e6 Allow factories for lookbook 2024-08-19 13:40:29 +02:00
Cyril Rohr 402b425b8b Explicitly dockerignore local assets 2024-05-13 08:58:52 +00:00
Cyril Rohr f99b9e7a51 Only allow precompiled assets to be injected when running from CI 2024-05-13 08:40:50 +00:00
Cyril Rohr ee98f54335 Attempt to use arm64 runners for building docker images (#15255)
* Use arm64 runners for building docker images, simplify dockerfiles
2024-05-07 20:53:03 +02:00
Cyril Rohr 2c123e647e Make slim image for docker 2023-08-01 13:30:45 +00:00
Christophe Bliard d9953071a1 Exclude angular cache dir from Docker context 2023-05-04 11:27:31 +02:00
ulferts ca361b017b remove legacy specs completely 2022-10-17 14:23:39 +02:00
Markus Kahl 0c02836f2c make sure all needed docs files are present 2021-07-02 01:03:49 +01:00
Markus Kahl d171c5a489 ignore all docs except OpenAPI spec! 2021-07-02 00:01:28 +01:00
Cyril Rohr dfbfe24d0b Unified docker image for BIM edition. Add pre/post hooks for other platforms. (#8553)
Unified docker image for BIM edition. Add pre/post hooks for other platforms.
2020-08-19 14:11:28 +02:00
Cyril Rohr 1cc7fedac0 Provide docker-compose v3 with one process per container 2020-02-04 11:20:34 +00:00
Cyril Rohr 8c68f47044 Improve Dockerfile and reduce image size 2020-02-04 11:20:34 +00:00
Cyril Rohr 97ac309fe6 dockerize 2015-12-11 13:31:53 +00:00