comparison docker/pubsub/Dockerfile @ 4215:31c84a32c897

docker: modernisation and fixes: - fix geckodriver version used following `backend-dev-e2e` base image update - use Prosody image `prosodyim/prosody:0.12` instead of a deprecated one - update `pubsub` image with base image update and use of new repos names
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 16:43:45 +0100
parents 43cc8c27adc7
children
comparison
equal deleted inserted replaced
4214:07439bc0ed3c 4215:31c84a32c897
1 FROM debian:bullseye-slim 1 FROM debian:bookworm-slim
2 2
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" 3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
4 4
5 ARG DEBIAN_FRONTEND=noninteractive 5 ARG DEBIAN_FRONTEND=noninteractive
6 6
7 RUN apt-get update && apt-get upgrade -y && \ 7 RUN apt-get update && apt-get upgrade -y && \
8 apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libpq-dev gcc gnupg && \ 8 apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libpq-dev gcc gnupg && \
9 # we install postgresql repository to have latest version
10 echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
11 python3 -c 'from urllib.request import urlopen; print(urlopen("https://www.postgresql.org/media/keys/ACCC4CF8.asc").read().decode())' | apt-key add - && \
12 # now we can install the client
13 apt-get install -y --no-install-recommends postgresql-client && \ 9 apt-get install -y --no-install-recommends postgresql-client && \
14 # it's better to have a dedicated user 10 # it's better to have a dedicated user
15 useradd -m libervia && \ 11 useradd -m libervia && \
16 mkdir /src && chown libervia:libervia /src && \ 12 mkdir /src && chown libervia:libervia /src && \
17 # we need UTF-8 locale 13 # we need UTF-8 locale
25 21
26 USER libervia 22 USER libervia
27 RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \ 23 RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \
28 # we install thoses packages in editable mode, so we can replace them easily with volumes 24 # we install thoses packages in editable mode, so we can replace them easily with volumes
29 hg clone https://repos.goffi.org/sat_tmp && ~/libervia_env/bin/pip install -e sat_tmp && \ 25 hg clone https://repos.goffi.org/sat_tmp && ~/libervia_env/bin/pip install -e sat_tmp && \
30 hg clone https://repos.goffi.org/sat_pubsub && ~/libervia_env/bin/pip install -e sat_pubsub 26 hg clone https://repos.goffi.org/libervia-pubsub && ~/libervia_env/bin/pip install -e libervia-pubsub
31 27
32 ENTRYPOINT ["/home/libervia/entrypoint.sh"] 28 ENTRYPOINT ["/home/libervia/entrypoint.sh"]