view docker/backend-dev-demo/Dockerfile @ 3583:16ade4ad63f3 sqlalchemy

core (memory/sqla_mapping): fix some technical debt: a first Alembic revision file is joined to migrate existing databases to new mapping. This patch: - set `nullable=False` in various places - drop legacy `message_types` table, and use `Enum` instead - use naming convention, and get rid of anonymous constraint (this is the main reason why the revision file is so long)
author Goffi <goffi@goffi.org>
date Sun, 27 Jun 2021 00:15:40 +0200
parents db0f4d419448
children d5fd630b57bb
line wrap: on
line source

FROM libervia/backend:dev

LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"

USER root

# we install pre-generated demo certificates so they can be trusted
COPY --chown=root:root certificates/minica.pem /usr/local/share/ca-certificates/minica.crt
COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/libervia/certificates/server1.test.pem
COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/libervia/certificates/server1.test-key.pem
RUN update-ca-certificates

COPY --chown=root:root libervia.conf /etc/libervia.conf

USER libervia

RUN ./entrypoint.sh \
    # we create the file sharing component which will autoconnect when backend is started
    jp profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \
    libervia-backend stop

RUN ./entrypoint.sh \
    # and a demo account
	jp profile create demo -j demo@server1.test -p "demo"  && \
    libervia-backend stop

USER libervia
# HTTP Upload
EXPOSE 7777