odoo / odoo/docker

Module "social_push_notifications" needs firebase_admin python library

Open
#340 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
1.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Odoo 14 Docker image build and its dependency definitions, using the missing firebase_admin error and the social_push_notifications module as the reproduction case. Update the image so the Python library is available, then verify that the module installs without the external-dependency error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.