Mercurial > libervia-backend
changeset 3940:512487ce3579
docker: update images to include new OMEMO libraries and OpenPGP packages:
rel 380
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 15 Oct 2022 20:38:33 +0200 |
parents | 8ae3e870be94 |
children | 036188fff714 |
files | docker/README docker/backend-dev/Dockerfile |
diffstat | 2 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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