Commit Graph

5 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
Oliver Günther 9ac5bb9f73 Remove ppc64 support 2025-03-06 08:22:46 +01:00
Markus Kahl 9cde5c5b20 update packaged ppc64 bundle 2025-02-24 12:27:44 +00:00
Markus Kahl 56b5c48145 amend ppc64 build which had been removed before on dev 2025-02-11 14:29:10 +00:00
Markus Kahl f932f06a0f cache vendor/bundle in docker workflow
'seed' ppc64 bundle cache with state from release/15.2
2025-01-21 17:28:11 +00:00