Mercurial > libervia-backend
annotate docker/pubsub/Dockerfile @ 4216:1a7a3e4b52a4
core (memory/migration):
Update XEP-0384 and `fe3a02cb4bec_convert_legacypickle_columns_to_json.py` migration to
properly handle (de)serialisation of `TrustMessageCacheEntry`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Mar 2024 17:31:12 +0100 |
parents | 31c84a32c897 |
children |
rev | line source |
---|---|
4215 | 1 FROM debian:bookworm-slim |
3381 | 2 |
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" | |
4 | |
5 ARG DEBIAN_FRONTEND=noninteractive | |
6 | |
7 RUN apt-get update && apt-get upgrade -y && \ | |
3446
d2298ed6de7f
docker (pubsub): install latest version of `postgresql-client` with PostgreSQL own Debian repos.
Goffi <goffi@goffi.org>
parents:
3445
diff
changeset
|
8 apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libpq-dev gcc gnupg && \ |
d2298ed6de7f
docker (pubsub): install latest version of `postgresql-client` with PostgreSQL own Debian repos.
Goffi <goffi@goffi.org>
parents:
3445
diff
changeset
|
9 apt-get install -y --no-install-recommends postgresql-client && \ |
3381 | 10 # it's better to have a dedicated user |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
11 useradd -m libervia && \ |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
12 mkdir /src && chown libervia:libervia /src && \ |
3381 | 13 # we need UTF-8 locale |
14 sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen | |
15 | |
16 ENV LC_ALL en_US.UTF-8 | |
17 | |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
18 WORKDIR /home/libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
19 COPY entrypoint.sh /home/libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
20 RUN chown libervia:libervia /home/libervia/entrypoint.sh && chmod 0555 /home/libervia/entrypoint.sh |
3381 | 21 |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
22 USER libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
23 RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \ |
3381 | 24 # we install thoses packages in editable mode, so we can replace them easily with volumes |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
25 hg clone https://repos.goffi.org/sat_tmp && ~/libervia_env/bin/pip install -e sat_tmp && \ |
4215 | 26 hg clone https://repos.goffi.org/libervia-pubsub && ~/libervia_env/bin/pip install -e libervia-pubsub |
3381 | 27 |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
28 ENTRYPOINT ["/home/libervia/entrypoint.sh"] |