Comments (19)
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.
I created a pull request for this, the wkhtmltopdf seems fine: #478
from docker.
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.
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.
I am also in the waiting line...
from docker.
Looking forward the update to version 17...
from docker.
I'm also waiting for this so I can try Odoo 17.
from docker.
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.
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.
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:
- Debian Bullseye (Debian 11) image to Ubuntu 22.04 Image, which previously, Odoo used a Debian Bullseye 11 image, and when trying to update to debian 12/bookworm I noticed that wkhtmltopdf does not have an officially version for Debian 12, what is also an odoo warning when building odoo.
- That's also make me change the wkhtmltopdf to Ubuntu 22.04 version, that's is supported officialy by wkhtmltopdf as you can check into the download page of wkhtmltopdf.
- The python version from 3.8 to 3.10.12, one time the Odoo 17 requires a python version equal or higher than 3.10.
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.
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.
Great
from docker.
@d-fence can you mark these as solved as you updated the repo that now contains an dockerfile of odoo17?
from docker.
Why is Odoo 17 using an Ubuntu image?
from docker.
I don't know, but they followed my initial ideia.
from docker.
It would have been better to stick to Debian, and not change it to something else! The continuity is suffering!
from docker.
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.
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.
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)
- Readme: obsolete docker flag (--link) HOT 5
- [QUESTION]: Odoo V16 - wkhtmltopdf version
- How install the requirements for odoo 17 in offical Docker HOT 1
- I had a permission problem when I mounted the data volume. Trying to specify a user also didn't work. HOT 4
- docker map directory permission error HOT 2
- RuntimeError: can't start new thread HOT 4
- getting error 99 Cannot assign requested address in outgoing email server - Odoo 17.0 Community Edition HOT 2
- Database name configuration HOT 4
- Unable to obtain the real address of the external client HOT 2
- Oddo don't work on Unraid HOT 8
- recent docker pull from odoo:16 cause AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' HOT 2
- Odoo 15 Unraid update never worked HOT 2
- Apply docker compose HOT 4
- Update the release version of Odoo 17. HOT 2
- odoo:15,how to upgrade to new version HOT 4
- [17.0] lxml.html.clean module is now a separate project lxml_html_clean HOT 2
- Update Odoo release in the dockerfile to include commit 7e9a873 HOT 4
- Location of HOT 2
- Need link to docs, or info for docker image & SSL HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.