docker icon indicating copy to clipboard operation
docker copied to clipboard

Module "social_push_notifications" needs firebase_admin python library

Open mamiu opened this issue 4 years ago • 2 comments

The firebase_admin python library is not installed in the odoo docker image. Therefore the module social_push_notifications cannot be installed. I got following error message:

Unable to install module "social_push_notifications" because an external dependency is not met: Python library not installed: firebase_admin

Screen Shot 2020-11-17 at 02 04 03

As a workaround I'm wrapping the odoo docker image with a custom one that installs firebase_admin:

FROM odoo:14

USER root

RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get update --fix-missing && \
    apt-get install -y g++ python3-dev python3-wheel && \
    pip3 install firebase-admin && \
    apt-get remove -y g++ python3-dev python3-wheel && \
    apt-get autoremove -y && \
    rm -rf /var/cache/apt/archives && \
    rm -rf /var/cache/apt/lists && \
    rm -rf /var/lib/apt/lists && \
    apt-get clean

USER odoo

mamiu avatar Nov 22 '20 10:11 mamiu