comparison docker/backend-dev/Dockerfile @ 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 fd3fe346a14a
children 5a835b320726
comparison
equal deleted inserted replaced
3939:8ae3e870be94 3940:512487ce3579
5 ARG REVISION 5 ARG REVISION
6 ARG DEBIAN_FRONTEND=noninteractive 6 ARG DEBIAN_FRONTEND=noninteractive
7 7
8 RUN echo "Building image for Libervia ${REVISION:-dev}" && \ 8 RUN echo "Building image for Libervia ${REVISION:-dev}" && \
9 apt-get update && apt-get upgrade -y && \ 9 apt-get update && apt-get upgrade -y && \
10 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 && \ 10 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 && \
11 \ 11 \
12 # will be used to put many Libervia specific data 12 # will be used to put many Libervia specific data
13 mkdir -p /usr/share/libervia/certificates && \ 13 mkdir -p /usr/share/libervia/certificates && \
14 addgroup tls-cert --gid 9999 && \ 14 addgroup tls-cert --gid 9999 && \
15 chown :tls-cert /usr/share/libervia/certificates && \ 15 chown :tls-cert /usr/share/libervia/certificates && \
26 ENV DOCKER_LIBERVIA_REV=${REVISION:-dev} 26 ENV DOCKER_LIBERVIA_REV=${REVISION:-dev}
27 27
28 COPY --chown=root:root session.conf /usr/share/dbus-1/session.conf 28 COPY --chown=root:root session.conf /usr/share/dbus-1/session.conf
29 29
30 WORKDIR /home/libervia 30 WORKDIR /home/libervia
31
32 RUN apt-get install -y --no-install-recommends libsodium-dev
31 USER libervia 33 USER libervia
34 RUN python3 -m venv --system-site-packages libervia_env && libervia_env/bin/pip install -U pip wheel
32 35
33 RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \ 36 # temporary needed for new OMEMO
37 RUN libervia_env/bin/pip install protobuf==3.20 && \
38 libervia_env/bin/pip install git+https://github.com/Syndace/python-xeddsa.git@stable && \
39 libervia_env/bin/pip install git+https://github.com/Syndace/python-x3dh.git@stable && \
40 libervia_env/bin/pip install git+https://github.com/Syndace/python-doubleratchet.git@stable && \
41 libervia_env/bin/pip install git+https://github.com/Syndace/python-omemo.git@stable && \
42 libervia_env/bin/pip install git+https://github.com/Syndace/python-oldmemo.git && \
43 libervia_env/bin/pip install git+https://github.com/Syndace/python-twomemo.git
44
45 RUN cd /src && \
34 # We install thoses packages in editable mode, so we can replace them easily with volumes. 46 # We install thoses packages in editable mode, so we can replace them easily with volumes.
35 # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting 47 # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting
36 # local repos without it them cause troubles 48 # local repos without it them cause troubles
37 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \ 49 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \
38 hg clone https://repos.goffi.org/sat_tmp -u "${REVISION:-@}" && ~/libervia_env/bin/pip install -e sat_tmp && \ 50 hg clone https://repos.goffi.org/sat_tmp -u "${REVISION:-@}" && ~/libervia_env/bin/pip install -e sat_tmp && \