Tecnativa / doodba

Base image for making the creation of customized Odoo environments a piece of cake
Apache License 2.0
429 stars 304 forks source link

[FIX] 11.0: use execjs <2.9.1 #566

Closed ap-wtioit closed 1 year ago

ap-wtioit commented 1 year ago

to avoid "execjs requires Ruby version >= 2.5.0." errors.

execjs seens to have a new tag 2.9.1 that fails installing as a dependency of autoprefixer-rails on our CI with the following error:

...
#14 [base  5/18] RUN gem install --no-rdoc --no-ri --no-update-sources autoprefixer-rails --version '<9.8.6'     && gem install --no-rdoc --no-ri --no-update-sources bootstrap-sass --version '<3.4'     && rm -Rf ~/.gem /var/lib/gems/*/cache/
#14 55.10 ERROR:  Error installing autoprefixer-rails:
#14 55.10   execjs requires Ruby version >= 2.5.0.
#14 ERROR: executor failed running [/bin/sh -c gem install --no-rdoc --no-ri --no-update-sources autoprefixer-rails --version '<9.8.6'     && gem install --no-rdoc --no-ri --no-update-sources bootstrap-sass --version '<3.4'     && rm -Rf ~/.gem /var/lib/gems/*/cache/]: runc did not terminate sucessfully
------
 > [base  5/18] RUN gem install --no-rdoc --no-ri --no-update-sources autoprefixer-rails --version '<9.8.6'     && gem install --no-rdoc --no-ri --no-update-sources bootstrap-sass --version '<3.4'     && rm -Rf ~/.gem /var/lib/gems/*/cache/:
#14 55.10 ERROR:  Error installing autoprefixer-rails:
#14 55.10   execjs requires Ruby version >= 2.5.0.

Pinning the version to <2.9.1 fixes the issue for 11.0.Dockerfile

Info @wt-io-it

ap-wtioit commented 1 year ago

Not 100% sure about d33df7fe662017bf12988424c2a1f5373e0f16b4. I added it because installing docker-compose requires pyyaml < 6 and the install workaround https://github.com/yaml/pyyaml/issues/736 does not work with poetry. (It always uses the newest Cython when installing pyyaml.)