Code Monkey home page Code Monkey logo

Comments (19)

thomas15v avatar thomas15v commented on June 13, 2024 3

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. <[email protected]>

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"]

from docker.

ibrohimislam avatar ibrohimislam commented on June 13, 2024 3

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

from docker.

hertell avatar hertell commented on June 13, 2024 2

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

from docker.

Adridot avatar Adridot commented on June 13, 2024 1

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 ?

from docker.

llabusch93 avatar llabusch93 commented on June 13, 2024 1

I am also in the waiting line...

from docker.

WaleedChayeb avatar WaleedChayeb commented on June 13, 2024 1

Looking forward the update to version 17...

from docker.

looeee avatar looeee commented on June 13, 2024 1

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

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024 1

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

from docker.

hertell avatar hertell commented on June 13, 2024 1

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..

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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 #)

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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

from docker.

haimai-sa avatar haimai-sa commented on June 13, 2024

Great

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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

from docker.

hertell avatar hertell commented on June 13, 2024

Why is Odoo 17 using an Ubuntu image?

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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

from docker.

hertell avatar hertell commented on June 13, 2024

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

from docker.

amh-mw avatar amh-mw commented on June 13, 2024

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.

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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...

from docker.

GuikiPT avatar GuikiPT commented on June 13, 2024

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

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.