Docker Flectra 1.6 (LDAP libraries missing?)


#1

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
https://odoo.com/forum/help-1/question/odoo-11-ldap-authentication-125131

(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]
ENV LANG=C.UTF-8
ENV FLECTRA_VERSION=1.6
ENV FLECTRA_RELEASE=latest
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
${FLECTRA_VERSION}.${FLECTRA_RELEASE}amd64.changes -SL DOWNLOAD FLECTRA PATHflectra${FLECTRA_VERSION}.${FLECTRA_RELEASE}amd64.changes
&& 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
${FLECTRA_VERSION}.${FLECTRA_RELEASE}all.deb
&& apt-get update
&& apt-get -y install -f --no-install-recommends
&& rm -rf /var/lib/apt/lists/* flectra
${FLECTRA_VERSION}.${FLECTRA_RELEASE}_all.deb
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 /entrypoint.sh
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
ENTRYPOINT ["/entrypoint.sh"]
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

Thanks,
Nathan


#2

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: registry.gitlab.com/jamotion/flectra/ubuntu:v1.6.5 (currently v1.6.5).

A list of our images is available here: https://gitlab.com/jamotion/flectra/container_registry
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…


#3

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.


#4

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