odoo/docker

Odoo 17 image?

thomas15v opened this issue ยท 19 comments

Can an official odoo 17 image be provided?

I currently use this and haven't noticed any mayor issues. postgres-client and wkhtmltoppdf are provided from official repo's thought

I was a little bit to fast, wkhtmltopdf wasn't happy ... . Fixed it like this, but now I ain't happy:

FROM debian:bookworm-slim
MAINTAINER Odoo S.A. <info@odoo.com>

SHELL ["/bin/bash", "-xo", "pipefail", "-c"]

# Generate locale C.UTF-8 for postgres and general locale data
ENV LANG C.UTF-8

# Retrieve the target architecture to install the correct wkhtmltopdf package
ARG TARGETARCH

# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        ca-certificates \
        curl \
        dirmngr \
        fonts-noto-cjk \
        gnupg \
        libssl-dev \
        node-less \
        npm \
        python3-num2words \
        python3-pdfminer \
        python3-pip \
        python3-phonenumbers \
        python3-pyldap \
        python3-qrcode \
        python3-renderpm \
        python3-setuptools \
        python3-slugify \
        python3-vobject \
        python3-watchdog \
        python3-xlrd \
        python3-xlwt \
        python3-geoip2 \
        python3-rjsmin \
        xz-utils \
        postgresql-client \
    && curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb \
    && curl -o libssl1.1.deb -sSL ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb \
    && echo 'ea8277df4297afc507c61122f3c349af142f31e5 wkhtmltox.deb' | sha1sum -c - \
    && echo '975578b8e6cb8a0eb0734f34f3fa59e5507d9053 libssl1.1.deb' | sha1sum -c - \
    && apt-get install -y --no-install-recommends ./wkhtmltox.deb ./libssl1.1.deb \
    && rm -f /etc/apt/sources.list.d/pgdg.list \
    && rm -rf /var/lib/apt/lists/* ./wkhtmltox.deb ./libssl1.1.deb


# Install rtlcss (on Debian buster)
RUN npm install -g rtlcss

# Install Odoo
ENV ODOO_VERSION 17.0
ARG ODOO_RELEASE=latest
RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
    && apt-get update \
    && apt-get -y install --no-install-recommends ./odoo.deb \
    && rm -rf /var/lib/apt/lists/* odoo.deb

# Copy entrypoint script and Odoo configuration file
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
    && mkdir -p /mnt/extra-addons \
    && chown -R odoo /mnt/extra-addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]

# Expose Odoo services
EXPOSE 8069 8071 8072

# Set the default config file
ENV ODOO_RC /etc/odoo/odoo.conf

COPY wait-for-psql.py /usr/local/bin/wait-for-psql.py

# Set default user when running the container
USER odoo

ENTRYPOINT ["/entrypoint.sh"]
CMD ["odoo"]

Having the ARM version in docker is a huge step that we finally got, please go for version 17.0 now !
We are all waiting for it.
@d-fence any news on the ETA ?

I am also in the waiting line...

Looking forward the update to version 17...

I created a pull request for this, the wkhtmltopdf seems fine: #478

looeee commented

I'm also waiting for this so I can try Odoo 17.

Hello Guys.
I see you are waiting too.
I couldn't wait to long and I created my Odoo 17 Dockerfile without any issue.

I created an Unofficial Dockerfile with an automatically Github Package Creation to ghcr.io.
https://github.com/GuikiPT/Odoo17-Unofficial-Dockerfile
https://github.com/GuikiPT/Odoo17-Unofficial-Dockerfile/pkgs/container/odoo17-unofficial-dockerfile (should use the main release, the other ones was signatures for the main release, and if trying to pull from the others will give an manifest error, so you need to pull the main be using ghcr.io/guikipt/odoo17-unofficial-dockerfile:main)

What was changed:

Remember, these repository is an Unofficial Dockerfile of Odoo, I created by myself for self-usage and I want to share it from people who is trying to test/develop to Odoo17.

Let me know issues be creating an Issue into these repo and also I was open for pull request with updates.
Also my Discord Username for possible questions and problems: GuikiPT (yes just GuikiPT without #)

There is a Bookworm-version out there. Wkhtmltopdf probably just did not update it on their downloads-page, because the project is more or less dead. You can find all their packages over here
https://github.com/wkhtmltopdf/packaging/releases

There is a Bookworm-version out there. Wkhtmltopdf probably just did not update it on their downloads-page, because the project is more or less dead. You can find all their packages over here https://github.com/wkhtmltopdf/packaging/releases

Well didn't know about that, will update it back to Bullseye or Bookworm when I had time.
Thx for letting me know

So I was checking now and the Odoo Docker Repo has now an Dockerfile of Odoo17.

So as officialy added by odoo, you should use it:
https://github.com/odoo/docker/tree/master/17.0

Great

@d-fence can you mark these as solved as you updated the repo that now contains an dockerfile of odoo17?

Why is Odoo 17 using an Ubuntu image?

I don't know, but they followed my initial ideia.

It would have been better to stick to Debian, and not change it to something else! The continuity is suffering!

amh-mw commented

In one of the OXP key notes, @fpodoo mentioned that they moved to Ubuntu to take advantage of LTS releases with five years of support.

It would have been better to stick to Debian, and not change it to something else! The continuity is suffering!

I'm personality changed from Debian to Ubuntu in my repo because I had some problems with Wkhtmltopdf.
When I tried to install it into Debian 12 I had some issues. Also the Wkhtmltopdf isn't supported into they main page but have some releases on GitHub for Debian 12.

Because that I changed to Ubuntu like I said before.
But for these repo, odoo changes from Debian to Ubuntu, don't know why.

Probably because that, or probably some dependency...

In one of the OXP key notes, @fpodoo mentioned that they moved to Ubuntu to take advantage of LTS releases with five years of support.

Oh ok that's nice

Well, the same 5 years goes also for Debian bookworm: https://www.debian.org/News/2023/20230610 Talking docker images; running a lts-versions of debian/ubuntu is not realistic. I wonder who would be upgrading their odoo docker images within the next years..