From 35b063704cfb0e2c1a47db8171a5c29a4106eb0a Mon Sep 17 00:00:00 2001 From: David Beal Date: Mon, 17 Jun 2024 14:26:01 +0200 Subject: [PATCH] ADD 17.0-light --- .github/workflows/ci.yml | 1 + 17.0-light/Dockerfile | 38 +++++++++++++++ 17.0-light/ak_requirements.txt | 3 ++ 17.0-light/base_requirements.txt | 81 ++++++++++++++++++++++++++++++++ README.rst | 18 +++++++ 5 files changed, 141 insertions(+) create mode 100644 17.0-light/Dockerfile create mode 100644 17.0-light/ak_requirements.txt create mode 100644 17.0-light/base_requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6d96bd..1830521 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: - ODOOVERSION: "15.0" - ODOOVERSION: "16.0" - ODOOVERSION: "16.0-light" + - ODOOVERSION: "17.0-light" steps: - uses: actions/checkout@v2 - name: Set up Docker Buildx diff --git a/17.0-light/Dockerfile b/17.0-light/Dockerfile new file mode 100644 index 0000000..1bff7c9 --- /dev/null +++ b/17.0-light/Dockerfile @@ -0,0 +1,38 @@ +FROM ghcr.io/acsone/odoo-bedrock:17.0-py311-jammy-latest +ARG PYTHONBIN=python3.11 +MAINTAINER Akretion + +# syntax = docker/dockerfile:1.4 + +# List from https://github.com/camptocamp/docker-odoo-project/blob/master/16.0/Dockerfile +ENV BUILD_PACKAGE \ + build-essential \ + gcc \ + ${PYTHONBIN}-dev \ + libevent-dev \ + libfreetype6-dev \ + libxml2-dev \ + libxslt1-dev \ + libsasl2-dev \ + libldap2-dev \ + libssl-dev \ + libjpeg-dev \ + libpng-dev \ + zlib1g-dev \ + git \ +# Additionnal dep from Ak + po4a \ + libpq-dev \ + postgresql-client + +RUN --mount=type=cache,target=/var/cache/apt \ + apt-get update \ + && apt-get install -y --no-install-recommends $BUILD_PACKAGE + +COPY 17.0-light/base_requirements.txt /tmp/base_requirements.txt +RUN pip install --no-cache-dir -r /tmp/base_requirements.txt + +COPY 17.0-light/ak_requirements.txt /tmp/ak_requirements.txt +RUN pip install --no-cache-dir -r /tmp/ak_requirements.txt + +CMD ["odoo"] diff --git a/17.0-light/ak_requirements.txt b/17.0-light/ak_requirements.txt new file mode 100644 index 0000000..8452545 --- /dev/null +++ b/17.0-light/ak_requirements.txt @@ -0,0 +1,3 @@ +click-odoo-contrib +git+https://github.com/oca/openupgradelib.git@master +odoo_test_helper #==2.0.2 diff --git a/17.0-light/base_requirements.txt b/17.0-light/base_requirements.txt new file mode 100644 index 0000000..59b157b --- /dev/null +++ b/17.0-light/base_requirements.txt @@ -0,0 +1,81 @@ +# Odoo dependencies +Babel==2.11.0 +chardet==5.0.0 +decorator==5.1.1 +docutils==0.19 +ebaysdk==2.2.0 +freezegun==1.2.2 +gevent==22.10.2 +greenlet==2.0.1 +html2text==2020.1.16 +idna==3.4 +Jinja2==3.1.2 +libsass==0.21.0 +lxml==4.9.1 +Mako==1.2.3 +MarkupSafe==2.1.1 +num2words==0.5.12 +ofxparse==0.21 +passlib==1.7.4 +Pillow==9.3.0 +polib==1.1.1 +psutil==5.9.4 +psycopg2==2.9.5 +pydot==1.4.2 +python-ldap==3.4.3 +PyPDF2==1.27.12 +pyserial==3.5 +python-dateutil==2.8.2 +pytz==2022.6 +pyusb==1.2.1 +qrcode==7.3.1 +reportlab==3.6.12 +requests==2.28.1 +zeep==4.2.0 +python-stdnum==1.17 +vobject==0.9.6.1 +Werkzeug==0.16.1 +XlsxWriter==3.0.3 +xlwt==1.3.0 +xlrd==2.0.1 +pyOpenSSL==22.1.0 + +setuptools<58 + +# Not part of official requirements, but used by some addons +# colorama==0.3.9 +gdata==2.0.18 +html5lib==1.1 +odfpy==1.4.1 +pyinotify==0.9.6 +simplejson==3.17.6 +urllib3==1.26.7 + +# test / lint +# those libs and their dependencies are unpinned +# to always test with the last version of it +flake8 +pytest>=5.4.2 +pluggy +coverage +pytest-odoo>=0.4.7 +pytest-cov>=2.10.0 +watchdog + +# Library dependency +argh==0.26.2 +atomicwrites==1.4.1 +attrs==22.1.0 +beautifulsoup4==4.11.1 +future==0.18.2 +mccabe==0.7.0 +more-itertools==9.0.0 +pathtools==0.1.2 +pbr==5.11.0 +pexpect==4.8.0 +ptyprocess==0.7.0 +py==1.11.0 +pycodestyle==2.9.1 +pyflakes==2.5.0 +unicodecsv==0.14.1 +wrapt==1.14.1 diff --git a/README.rst b/README.rst index 4523290..97dc86b 100644 --- a/README.rst +++ b/README.rst @@ -41,3 +41,21 @@ runtests ~~~~~~~~~ This script is used to execute the custom test on the ci + + +To Test locally +=============== + +Cmd line inside of this current directory + +``` docker build -f 17.0-light/Dockerfile -t try-local . ``` + +Now in the Docker file of your odoo project: + +replace + +```FROM ghcr.io/akretion/odoo-docker:17.0-light-latest as base ``` + +by + +```FROM try-local:latest as base```