59 Commits

Author SHA1 Message Date
Klaus Zanders 6723969aba Disable secret check for asset pipeline build 2026-05-12 12:07:54 +02:00
Markus Kahl 084888dd1b add curl again because we rely on it downstream 2026-03-13 12:54:04 +00:00
Markus Kahl 523ab3bf17 restore file binary which we need for MIME type detection 2026-02-25 10:36:50 +00:00
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
Eric Schubert 82f6fd0c9e [chore] fix ifc conversion pipe
- remove dotnet runtime dependency
- use prebuilt self-contained executable for xeokit-metadata
2026-01-27 16:15:36 +01:00
Markus Kahl 921721f2dc use slim ruby image as base, add gem build dependencies 2026-01-23 14:18:45 +00:00
Oliver Günther 39c42a35ef Allow configuration of base image 2025-10-23 07:55:10 +02:00
Christophe Bliard 46e230b586 Retry downloads of bim dependencies in docker
Download failed in some CI builds for some reason [1], while it worked
for previous builds [2]. I would assume it's transient download errors.

Adding `--tries 3` to the wget commands to retry the downloads should
fix the issue.

Also replaced `--quiet` with `--no-verbose` to be terser than default
but still get error information when it fails.

[1] https://github.com/opf/openproject-flavours/actions/runs/17911001201 and https://github.com/opf/openproject-flavours/actions/runs/17910946720/job/50922134721
[2] https://github.com/opf/openproject-flavours/actions/runs/17910953231/job/50922155467
2025-09-22 12:04:30 +02:00
Markus Kahl 5dfcaeaa44 fix docker build db migration by granting missing permissions 2025-06-20 15:52:56 +01:00
Cyril Rohr 14b098a92c Fix unbound variable error in precompile script (#18896) 2025-05-12 09:53:59 +02:00
Cyril Rohr 60b90bf657 Allow more than 2 pg versions to be installed (#18772)
* Allow more than 2 pg versions to be installed

* Ensure PATH is updated with PGBIN

* Ensure all variables are set
2025-05-06 11:16:50 +02:00
Oliver Günther 6443e2f91d Keep support in preinstall for ppc 2025-03-06 10:11:59 +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
Cyril Rohr a65712191a Use more up-to-date gosu release to fix vulnerability 2024-11-27 08:32:04 +01:00
Alexander 42c0807cc5 Update preinstall-common.sh 2024-11-25 11:55:15 +03:00
Oliver Günther ebecad5d2b Ensure init nulldb with utf8 2024-10-21 12:37:09 +02:00
Alexander 5f3c15e5e7 Always install jemalloc 2024-09-20 15:57:15 +03:00
Alexander 111656a4db update runtime 2024-08-29 18:45:22 +03:00
Alexander 78a698348e Support arm and ppc archs 2024-07-08 15:54:33 +03:00
Alexander 242bfea8c6 Support arm and ppc archs 2024-07-08 15:53:21 +03:00
Alexander 4cdb37e8c7 Use jemalloc to prevent memory bloating 2024-06-25 20:44:32 +03:00
Dan e59b31ca2b apt-get update before attempting to install postfix
Moves the `apt-get update` command above the `apt-get install` on line 13-14.
2024-06-13 19:35:56 -04:00
Cyril Rohr 2bc8e3dce7 Upgrade base ruby image for docker images (#15534)
* Upgrade base ruby image for docker images
* Update base docker image for CI
2024-05-14 10:44:15 +02:00
Markus Kahl 3dffd26c18 add missing schema_cache.yml and structure.sql
again as they are needed downstream
2024-05-10 10:51:28 +01:00
Oliver Günther 1090e2df9d Merge remote-tracking branch 'origin/release/14.0' into dev 2024-05-08 20:48:52 +02:00
Oliver Günther 67e7826551 Fix files being left over in cache 2024-05-08 20:31:28 +02:00
Oliver Günther 3e11521dda Backport docker build to 14.0 2024-05-08 13:56:46 +02: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
Markus Kahl 0036363af0 fix ppc64 docker build
adds libclang-dev since the commonmarker native extension build evidently needs that on ppc
2024-01-17 13:26:59 +00:00
Oliver Günther 052bd6635f Allow customization of the production database.yml 2023-11-30 13:42:24 +01:00
Oliver Günther a11a1a3a62 Add pg_client postgres 15 (#14180)
* Add pg_client postgres 15

* Remove overridden PGBIN
2023-11-21 14:33:42 +01:00
Cyril Rohr dc798d4e2e Add subversion to all-in-one docker image 2023-09-05 15:55:44 +02:00
Cyril Rohr e93bd99c1d Add all-in-one image 2023-08-01 13:31:11 +00:00
Oliver Günther e08203c8c4 Remove pandoc and option to migrate from textile 2023-07-31 19:22:16 +02:00
Markus Kahl f4bc1b272c dockerize amd64 and ppc64le 2023-05-22 10:12:55 +02:00
Cyril Rohr d0e8f35761 Add memcached to base docker image
This helps with system tests downstream
2023-02-13 10:05:57 +00:00
Oliver Günther 78d6be89ee Remove .angular cache in docker after building (#11877)
Remove .angular cache after building
2023-01-09 09:01:43 +00:00
Cyril Rohr 9a04ef53f3 bim: dotnet and xeokit upgrades for docker image (#11619) 2022-11-14 08:48:50 +01:00
Markus Kahl 1aa34e6ab7 disable unprompted auto complete in irb for docker in prod 2022-09-28 14:54:13 +02:00
Markus Kahl 413aeda536 install dotnet globally to fix conversion 2022-05-04 16:02:08 +02:00
Simone Anile f24e13f095 Updated architecture recognition for arm64 support 2022-03-24 10:19:02 +01:00
Simone Anile 2af4f10091 Add arm64 support for docker "prod" build 2022-03-24 10:19:02 +01:00
Dan 3d5ef519e0 Work around bad hostname detection during postfix package install. (#9878) 2021-12-14 10:17:37 +01:00
Wieland Lindenthal 3a4ec382c7 [#39143, #39118] Update IfcConvert to allow multithreading
Gain conversion speed.
Also fix reported issue with IFC4 model.

https://community.openproject.org/wp/39143
https://community.openproject.org/wp/39118
2021-10-27 17:11:38 +02:00
Cyril Rohr 98dae7a9ef Remove the COMMENT ON EXTENSION in the structure.sql
Commenting on an extension requires superuser privileges, while superuser should not be required to setup the OpenProject database.
2021-09-27 13:32:11 +02:00
Cyril Rohr 588a526531 Make postgres13 the default version when installing OpenProject (#9088)
* Reexport PGVERSION and PGBIN according to existing install
* Display message if PostgreSQL version deprecated
* Do not launch postgres if using external URI
* Add script to auto-upgrade postgres database for all-in-one dockerfile
* Add documentation for packages and all-in-one docker image
2021-06-11 10:05:21 +02:00
Wieland Lindenthal 31c1bdc9f9 Feature #37401: Bump XEOKIT to use XKT files version 8. Migrate all IFC models. (#9300)
* bump xeokit to xkt version 8

* Bump @xeokit/xeokit-gltf-to-xkt to version 1.3.1

- Remove all logic for extracting and providing metadata JSON
- Update seeder
- Update seeded XKT demo hospital model files
- Update conversion service to join GLTF and metadata into XKT file
- Fix feature spec for viewpoints.

* Remove specs for metadata attachment checking

* Update modules/bim/db/migrate/20210521080035_update_xkt_to_version8.rb

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2021-06-03 08:12:05 +01:00