Skip to content

Commit

Permalink
Merge pull request #21 from akretion/17
Browse files Browse the repository at this point in the history
ADD 17.0-light
  • Loading branch information
hparfr authored Jun 17, 2024
2 parents 77fb3a0 + 35b0637 commit 59a305f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 38 additions & 0 deletions 17.0-light/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
3 changes: 3 additions & 0 deletions 17.0-light/ak_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
click-odoo-contrib
git+https://github.com/oca/openupgradelib.git@master
odoo_test_helper #==2.0.2
81 changes: 81 additions & 0 deletions 17.0-light/base_requirements.txt
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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```

0 comments on commit 59a305f

Please sign in to comment.