Mercurial > libervia-backend
comparison docker/backend-dev-demo/Dockerfile @ 4195:22cd3094cd1e
docker (demo): fix starting + better UX:
- Use the new `wait_for_service` option to be sure that Prosody is launched.
- Use the new `init_script_path` option to initiate forums and bookmark a demo room.
- Activate MUC service.
- Change log formats to make them more readable.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Dec 2023 22:00:25 +0100 |
parents | 04cd749de818 |
children | 6a8cc6d668a4 |
comparison
equal
deleted
inserted
replaced
4194:3dbaf179c50d | 4195:22cd3094cd1e |
---|---|
20 libervia-backend stop | 20 libervia-backend stop |
21 | 21 |
22 RUN ./entrypoint.sh \ | 22 RUN ./entrypoint.sh \ |
23 # and a demo account | 23 # and a demo account |
24 libervia-cli profile create demo -j demo@server1.test -p "demo" && \ | 24 libervia-cli profile create demo -j demo@server1.test -p "demo" && \ |
25 # we create a bookmark to have something to test in chat | |
26 libervia-cli bookmarks add -pdemo -a demo@server1.test\ | |
27 libervia-backend stop | 25 libervia-backend stop |
26 | |
27 COPY --chown=libervia:libervia forums.json /home/libervia/ | |
28 COPY --chown=libervia:libervia scripts/init_script.sh /home/libervia/ | |
28 | 29 |
29 USER libervia | 30 USER libervia |
30 # HTTP Upload | 31 # HTTP Upload |
31 EXPOSE 7777 | 32 EXPOSE 7777 |