comparison docker/backend-dev/Dockerfile @ 3690:1680eec4cbfd

docker: use `@` instead of `tip` for dev images: `tip` links to most recent commit which may be on an other bookmark than the main one. By using `@`, we're sure that the main bookmark is used.
author Goffi <goffi@goffi.org>
date Wed, 20 Oct 2021 17:23:22 +0200
parents 57d43e3e0095
children 43cc8c27adc7
comparison
equal deleted inserted replaced
3689:f25442794e11 3690:1680eec4cbfd
34 # We install thoses packages in editable mode, so we can replace them easily with volumes. 34 # 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 35 # We need to move *.egg-info (generated by pip) out of src dirs, otherwise mounting
36 # local repos without it them cause troubles 36 # local repos without it them cause troubles
37 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \ 37 hg clone https://repos.goffi.org/urwid-satext && ~/libervia_env/bin/pip install -e urwid-satext && \
38 mv urwid-satext/urwid_satext.egg-info ~/libervia_env/lib/python3.*/site-packages && \ 38 mv urwid-satext/urwid_satext.egg-info ~/libervia_env/lib/python3.*/site-packages && \
39 hg clone https://repos.goffi.org/sat_tmp -u "${REVISION:-tip}" && ~/libervia_env/bin/pip install -e sat_tmp && \ 39 hg clone https://repos.goffi.org/sat_tmp -u "${REVISION:-@}" && ~/libervia_env/bin/pip install -e sat_tmp && \
40 mv sat_tmp/sat_tmp.egg-info ~/libervia_env/lib/python3.*/site-packages && \ 40 mv sat_tmp/sat_tmp.egg-info ~/libervia_env/lib/python3.*/site-packages && \
41 hg clone https://repos.goffi.org/libervia-templates && ~/libervia_env/bin/pip install -e libervia-templates && \ 41 hg clone https://repos.goffi.org/libervia-templates && ~/libervia_env/bin/pip install -e libervia-templates && \
42 mv libervia-templates/libervia_templates.egg-info ~/libervia_env/lib/python3.*/site-packages && \ 42 mv libervia-templates/libervia_templates.egg-info ~/libervia_env/lib/python3.*/site-packages && \
43 hg clone https://repos.goffi.org/libervia-media && \ 43 hg clone https://repos.goffi.org/libervia-media && \
44 hg clone https://repos.goffi.org/libervia-backend -u "${REVISION:-tip}" && ~/libervia_env/bin/pip install -e 'libervia-backend[SVG]' && \ 44 hg clone https://repos.goffi.org/libervia-backend -u "${REVISION:-@}" && ~/libervia_env/bin/pip install -e 'libervia-backend[SVG]' && \
45 mv libervia-backend/libervia_backend.egg-info ~/libervia_env/lib/python3.*/site-packages && \ 45 mv libervia-backend/libervia_backend.egg-info ~/libervia_env/lib/python3.*/site-packages && \
46 mkdir -p /home/libervia/.local/share/libervia 46 mkdir -p /home/libervia/.local/share/libervia
47 47
48 ENV DBUS_SESSION_BUS_ADDRESS="tcp:host=backend,port=55555,family=ipv4;unix:path=/home/libervia/.local/share/libervia/dbus_socket" 48 ENV DBUS_SESSION_BUS_ADDRESS="tcp:host=backend,port=55555,family=ipv4;unix:path=/home/libervia/.local/share/libervia/dbus_socket"
49 ENV PATH=/home/libervia/libervia_env/bin:$PATH 49 ENV PATH=/home/libervia/libervia_env/bin:$PATH