odoo / docker

Other
931 stars 1.51k forks source link

Odoo 14 bitnami docker image #451

Closed alekseytivonchik closed 1 year ago

alekseytivonchik commented 1 year ago

Hi! My env: Kubernetes: v1.24.3 Helm: v3.9.1 Odoo helm chart: https://github.com/bitnami/charts/tree/main/bitnami/odoo Odoo helm chart version: 23.1.1

On the above parameters, it is necessary to use the docker image Odoo - 14.0.20230510-debian-11-r0 or any other image of version 14 from bitnami There is no way to use the image in its pure form, since you need to additionally install python modules In this regard, a docker file was taken: https://github.com/bitnami/containers/blob/main/bitnami/odoo/14/debian-11/Dockerfile To which the lines were added:

...
ADD requirements-common.txt /requirements-common.txt # This line added
RUN python3 -m pip install -r /requirements-common.txt # This line added

EXPOSE 3000 8069 8072

USER root
ENTRYPOINT [ "/opt/bitnami/scripts/odoo/entrypoint.sh" ]
CMD [ "/opt/bitnami/scripts/odoo/run.sh" ]

After deploying the image to kubernetes, the pod with odoo does not start, and does not output any useful information to the log, only

k logs odoo-6467cbdf96-f4t9v -n odoo -f
odoo 14:34:53.39
odoo 14:34:53.40 Welcome to the Bitnami odoo container
odoo 14:34:53.40 Subscribe to project updates by watching https://github.com/bitnami/containers
odoo 14:34:53.40 Submit issues and feature requests at https://github.com/bitnami/containers/issues
odoo 14:34:53.40
odoo 14:34:53.40 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
odoo 14:34:53.44 INFO  ==> Restoring persisted Odoo installation
odoo 14:34:53.46 INFO  ==> Trying to connect to the database server
odoo 14:34:53.50 INFO  ==> Updating module

Maybe there are ideas how to fix it?

alekseytivonchik commented 1 year ago

The problem is solved, recreated the database and deleted the old data from volume