Docker Flectra 1.6 (LDAP libraries missing?)


First off, I’m new to Docker - I’ve managed to get Flectra up with Letsencrypt & Nginx Proxy containers alongside and configured it for HTTPS access.

My issue comes with App installation specifically the LDAP Authentication App.

Upon trying to install the app, I get the error that LDAP is missing, unfortunately the libraries are missing from the Image that I’m grabbing from Docker Hub.

See Odoo’s version of error

(image: flectrahq/flectra)

I have attempted to add the libraries myself as part of the Image, I managed to get the Dockerfile by utilizing a Docker container of which create’s dockerfiles from pulling the image.

This is where I encountered my issue, below you can see my Dockerfile I’ve added on line 16 & 17 the libraries which get the Odoo version working.

The issue itself is with line 2, what is this line supposed to do? ADD a file but I’m not sure what I am to put here… Any help would be greatly appreciated, (or even updating the Docker Image itself with the LDAP module if it is indeed missing?)

FROM flectrahq/flectra:latest
ADD file:6e8620824300ccf3754fb5d8644a1dc7c69431d4cd1ef9d28d73f39260f96020 in /
CMD [“bash”]
MAINTAINER FlectraHQ [email protected]
RUN /bin/sh -c set -x; apt-get update
&& apt-get install -y --no-install-recommends ca-certificates curl node-less python3-pip python3-setuptools python3-renderpm libssl1.0-dev xz-utils python3-watchdog
&& curl -o wkhtmltox.tar.xz -SL DOWNLOADLINK FOR ----> wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
&& echo ‘3f923f425d345940089e44c1466f6408b9619562 wkhtmltox.tar.xz’ | sha1sum -c -
&& tar xvf wkhtmltox.tar.xz
&& cp wkhtmltox/lib/* /usr/local/lib/
&& cp wkhtmltox/bin/* /usr/local/bin/
&& cp -r wkhtmltox/share/man/man1 /usr/local/share/man/
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev gcc libldap2-dev libssl-dev libsasl2-dev
RUN pip3 install pyldap
RUN /bin/sh -c set -x; curl -o flectra_${FLECTRA_VERSION}.${FLECTRA_RELEASE}all.deb -SL DOWNLOAD FLECTRA PATH/deb/flectra${FLECTRA_VERSION}.${FLECTRA_RELEASE}all.deb
&& curl -o flectra
&& echo "sed -n '/^Checksums-Sha1:$/{n;p;n;p;n;p}' flectra_${FLECTRA_VERSION}.${FLECTRA_RELEASE}_amd64.changes | tail -1 | awk '{print $1}' flectra
${FLECTRA_VERSION}.${FLECTRA_RELEASE}all.deb" | sha1sum -c
&& dpkg --force-depends -i flectra
&& apt-get update
&& apt-get -y install -f --no-install-recommends
&& rm -rf /var/lib/apt/lists/* flectra
RUN /bin/sh -c pip3 install num2words xlwt
COPY file:f380d7725563ad88c2197b59780acc13dbe3b4bf4e68f908ebf93d55dc1a4b01 in /
COPY file:3c5ac95867c7db6ae7b17a06ab15b64a6f9b0b6e7d3c0c67c255e68aa08d56e4 in /etc/flectra/
RUN /bin/sh -c chown flectra /etc/flectra/flectra.conf
RUN /bin/sh -c chmod +x /
RUN /bin/sh -c mkdir -p /mnt/extra-addons
&& chown -R flectra /mnt/extra-addons
VOLUME [/var/lib/flectra /mnt/extra-addons]
EXPOSE 7072 7073
ENV FLECTRA_RC=/etc/flectra/flectra.conf
USER flectra
CMD [“flectra”]

The Docker error is:
ERROR: Service ‘web’ failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder014050266 /file:6e8620824300ccf3754fb5d8644a1dc7c69431d4cd1ef9d28d73f39260f96020: no such file or directory

Docker version: 18.09.7
I’ve had to remove links from Dockerfile due to 2 link restriction



We always build our own docker images containing flectra with many dependencies.
And we also make some additional minor releases from time to time if some major bugs are fixed in master but not yet deployed.

So if you would you can use our images: (currently v1.6.5).

A list of our images is available here:
But please only use the images at path jamotion/flectra/ubuntu. This image is currently used for 4 customers in production so it is good tested…


Ahh so they differ from the official hub ones yes? I know every time I install that I have some extra python modules to install plus some dev packages and libraries.


Yes they differ. As we use many community modules we have added many additional python packages.