Commit Graph

16 Commits

Author SHA1 Message Date
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
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
Alexander 616e870c30 Bump IfcConvert version 2024-11-25 09:49:19 +01:00
Wieland Lindenthal ea7a289f3b [#56873] Add instructions on how to develop on the BIM edition using Docker (#16302)
* [#56873] Add instructions on how to develop on the BIM edition using Docker

https://community.openproject.org/work_packages/56873

* Cleanup according to review comments
2024-08-02 16:02:57 +02:00
Eric Schubert f764d138f3 [#56012] all Viepoints are saved to the last BCF
- https://community.openproject.org/work_packages/56012
- refreshing topic state after creating a wp (topic)
2024-07-05 16:58:44 +02:00
Dombi Attila 0ecc2614af Fix missing 18n export (#13256)
* Replace the i18n:js:export task with assets:export_locales

* Update the package-lock.json to fix bin/setup_dev errors
2023-07-26 16:45:21 +02:00
Eric Schubert 3e07975584 [#41480] respond with 401 on invalid bearer tokens
- https://community.openproject.org/work_packages/41480
- amend strategy for doorkeeper to react on all bearer tokens
- added ouath request spec for valid, invalid and revoked token
2022-04-08 14:58:03 +02:00
Benjamin Bädorf 964629b93d Permission woes 2021-11-25 18:15:47 +01:00
Patrick Helm 5810190995 Speed up bin/compose setup significantly (#9404)
With the proposed changes the time required to run `./bin/compose setup`
is being reduced from ~18 minutes down to ~7 minutes on my machine.
In addition a workaround is applied to reduce the size of the images.

== Changes

=== Speed-Up `bundle install`

The time spent withing `bundle install` takes a significant amount time
during the `./bin/compose setup`.
We could make use of two improvements, which both allows us to
utitlize multiple CPU cures:

* Make use of the bundle `--jobs` argument
* Make use of the lesser known/used `MAKE` environment variable

A significant amount of time spent during `bundle install` is actually
compiling C-extensions, that's why the usage of the `MAKE` variable will
drastically improve performence.

=== `useradd --no-log-init`

Unfortunately there is a nasty bug when running `useradd` for a huge
`uid`, which could result in excessive image sizes. See attached links
for more information.

=== BuildKit

BuildKit is the default builder toolkit for Docker on Windows and
DockerDesktop on Macs. Using BuildKit will greatly improve performance
when building docker images.

== Links

=== Speed-Up `bundle install`

* [One Weird Trick That Will Speed Up Your Bundle Install](https://build.betterup.com/one-weird-trick-that-will-speed-up-your-bundle-install/)

=== BuildKit

* [Build images with BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/)
* [Faster builds in Docker Compose 1.25.1 thanks to BuildKit Support](https://www.docker.com/blog/faster-builds-in-compose-thanks-to-buildkit-support/)

=== `useradd --no-log-init`

* Best practices for writing Dockerfiles: [User](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user)
* golang/co: [archive/tar: add support for writing tar containing sparse files](https://github.com/golang/go/issues/13548)
2021-07-13 16:01:59 +02:00
Markus Kahl c375646dc0 docker dev and test setup fixes (#9135)
* docker dev and test setup fixes

* added missing >

* include test instructions in quickstart

* fixed typo

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* removed obsolete comment

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* amendments

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
2021-04-06 13:35:32 +01:00
ulferts ba9bd5c5b9 document memory requirements of running docker (#9139)
* document memory requirements of running docker

* use bin/compose throughout docker dev description
2021-04-06 09:13:21 +02:00
ulferts c383c5821f Fix/remove cucumber (#8847)
* replace very last cuke with spec

* remove cuke support files

* remove cucumber gems

* remove traces of cucumber

* remove no longer required route

* forcefully clear parallel_test features task

* attempt removal of binstub

* attempt to stabilize spec
2020-11-16 09:20:51 +00: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
Benjamin Bädorf 8be32c015f Update docker development documentation
Updated the docker development documentation and changed the backend run-app command to use `-u puma` instead of `thin`.
2020-10-15 14:16:19 +02:00
Benjamin Bädorf 8b74bffac7 Revert changes to setup_dev
They were unnecessary, and were not backwards-compatible with non-docker development
2020-10-05 15:26:27 +02:00
Benjamin Bädorf a8dfb55345 Updated local development docker setup
There are now separate containers for testing purposes, and the frontend container is a node-only image. Containers run
with a user that has the current user id and gid, making sure that any files that are installed by bundler or npm are
user-owned.

Selenium tests can be ran, but not all of them work yet.
2020-10-05 15:04:33 +02:00