33 Commits

Author SHA1 Message Date
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
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
Alexander 42c0807cc5 Update preinstall-common.sh 2024-11-25 11:55:15 +03: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
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
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
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
Cyril Rohr 9a04ef53f3 bim: dotnet and xeokit upgrades for docker image (#11619) 2022-11-14 08:48:50 +01: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
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 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
Wieland Lindenthal f93cbc6eb4 Bump @xeokit/xeokit-gltf-to-xkt to version 1.1.1 2021-05-13 16:48:57 +02:00
Wieland Lindenthal 33443c154e Update IFC Viewer with latest Xeokit updates (#9207)
* Bump @xeokit/xeokit-gltf-to-xkt to version 1.0.0

* Bump Xeokit SDK and Xeokit BIM Viewer

* Overwrite XEOKIT orthogonal/perspective toggle icon

* Add styles for section tool and its menu

* Remove SAO deactivation for non default models.

Performance of SAO has improved ever since Xeokit's FastNavPlugin was created.

* bump xeokit sdk and bim viewer

* IFC viewer toolbar adoption for section plane tool.

* Fix spec after xeokit bump

* Feature 33880 Add Edit/Delete/Add model buttons in Models tab

* Paths to xeokit's bim viewer code changed

* Bumping xeokit packages

* Fix default_spec.rb for scopes
2021-05-05 15:29:17 +02:00
ulferts cef06b2191 Merge branch 'release/11.0' into dev 2020-11-25 17:07:55 +01:00
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00