# HG changeset patch # User Goffi # Date 1665859113 -7200 # Node ID 512487ce35791310106167ee7a4e1d70e6ef75e4 # Parent 8ae3e870be9429fa9643e98d8eb5d88839f3e7e4 docker: update images to include new OMEMO libraries and OpenPGP packages: rel 380 diff -r 8ae3e870be94 -r 512487ce3579 docker/README --- a/docker/README Sat Oct 15 20:38:30 2022 +0200 +++ b/docker/README Sat Oct 15 20:38:33 2022 +0200 @@ -1,3 +1,3 @@ -This directory and subdirectories contain files to build and manage Docker images of Salut à Toi. +This directory and subdirectories contain files to build and manage Docker images of Libervia. Please refer to documentation for details. diff -r 8ae3e870be94 -r 512487ce3579 docker/backend-dev/Dockerfile --- a/docker/backend-dev/Dockerfile Sat Oct 15 20:38:30 2022 +0200 +++ b/docker/backend-dev/Dockerfile Sat Oct 15 20:38:33 2022 +0200 @@ -7,7 +7,7 @@ RUN echo "Building image for Libervia ${REVISION:-dev}" && \ apt-get update && apt-get upgrade -y && \ - apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libxml2-dev libxslt-dev libcairo2-dev libjpeg-dev libgirepository1.0-dev libdbus-1-dev libdbus-glib-1-dev dbus-x11 cmake && \ + apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libxml2-dev libxslt-dev libcairo2-dev libjpeg-dev libgirepository1.0-dev libdbus-1-dev libdbus-glib-1-dev dbus-x11 cmake python3-gpg git && \ \ # will be used to put many Libervia specific data mkdir -p /usr/share/libervia/certificates && \ @@ -28,9 +28,21 @@ COPY --chown=root:root session.conf /usr/share/dbus-1/session.conf WORKDIR /home/libervia + +RUN apt-get install -y --no-install-recommends libsodium-dev USER libervia +RUN python3 -m venv --system-site-packages libervia_env && libervia_env/bin/pip install -U pip wheel -RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \ +# temporary needed for new OMEMO +RUN libervia_env/bin/pip install protobuf==3.20 && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-xeddsa.git@stable && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-x3dh.git@stable && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-doubleratchet.git@stable && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-omemo.git@stable && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-oldmemo.git && \ + libervia_env/bin/pip install git+https://github.com/Syndace/python-twomemo.git + +RUN cd /src && \ # We install thoses packages in editable mode, so we can replace them easily with volumes. # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting # local repos without it them cause troubles