diff --git a/16.0.Dockerfile b/16.0.Dockerfile index 201b35fe..92a95f9b 100644 --- a/16.0.Dockerfile +++ b/16.0.Dockerfile @@ -142,12 +142,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 and greenlet==1.1.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt && \ - sed -i 's/greenlet==[0-9\.]*/greenlet==1.1.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version > '3.9' and python_version <= '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version > '3.9' and python_version <= '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \ diff --git a/17.0.Dockerfile b/17.0.Dockerfile index bcb42ab3..88544d63 100644 --- a/17.0.Dockerfile +++ b/17.0.Dockerfile @@ -141,11 +141,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \ diff --git a/18.0.Dockerfile b/18.0.Dockerfile index f2e71f23..4b887f4e 100644 --- a/18.0.Dockerfile +++ b/18.0.Dockerfile @@ -141,11 +141,8 @@ RUN build_deps=" \ && apt-get update \ && apt-get install -yqq --no-install-recommends $build_deps \ && curl -o requirements.txt https://raw.githubusercontent.com/$ODOO_SOURCE/$ODOO_VERSION/requirements.txt \ - && \ - if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Upgrading odoo requirements.txt with gevent==21.12.0 (minimum version compatible with arm64)" && \ - sed -i 's/gevent==[0-9\.]*/gevent==21.12.0/' requirements.txt; \ - fi \ + # disable gevent version recommendation from odoo and use 22.10.2 used in debian bookworm as python3-gevent + && sed -i -E "s/(gevent==)21\.8\.0( ; sys_platform != 'win32' and python_version == '3.10')/\122.10.2\2/;s/(greenlet==)1.1.2( ; sys_platform != 'win32' and python_version == '3.10')/\12.0.2\2/" requirements.txt \ && pip install -r requirements.txt \ 'websocket-client~=0.56' \ astor \