From 0f0f32e07cb22f68dbb017259ca861341721c3a7 Mon Sep 17 00:00:00 2001 From: Joerg Elfring Date: Thu, 22 Nov 2018 18:15:06 +0100 Subject: [PATCH] prosody: migrate to prosody 0.11 --- prosody/Dockerfile | 27 +++++++++++++-------------- prosody/README.md | 3 ++- prosody/assets/prosody.cfg.lua | 4 +--- 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/prosody/Dockerfile b/prosody/Dockerfile index b9274f9..8c1d094 100644 --- a/prosody/Dockerfile +++ b/prosody/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.6 +FROM alpine:3.8 LABEL maintainer "J. Elfring " @@ -7,11 +7,11 @@ RUN apk add --no-cache \ --update \ libcrypto1.0 \ libidn \ - lua \ - lua-expat \ - lua-filesystem \ - lua-sec \ - lua-socket + lua5.2 \ + lua5.2-expat \ + lua5.2-filesystem \ + lua5.2-sec \ + lua5.2-socket ## Install build envirnoment, build and remove unneeded things ## This is done in one step to reduce image size @@ -19,17 +19,15 @@ RUN apk add --update \ --no-cache \ --virtual .build-deps \ alpine-sdk \ - git \ mercurial \ - luarocks \ + libidn-dev \ linux-headers \ - lua-busted \ - lua-dev \ - libidn-dev \ + lua5.2-busted \ + lua5.2-dev \ openssl-dev \ && set -x \ - && luarocks-5.1 install luabitop \ - && hg clone https://hg.prosody.im/0.10 /prosody-src \ + && ln -s /usr/bin/busted-5.2 /usr/local/bin/busted \ + && hg clone https://hg.prosody.im/0.11 /prosody-src \ && cd /prosody-src \ && ./configure --no-example-certs \ --cflags='-fPIC -Wall -std=c99 -pedantic -DWITHOUT_MALLINFO' \ @@ -41,12 +39,13 @@ RUN apk add --update \ && hg clone https://hg.prosody.im/prosody-modules/ /usr/local/lib/prosody-community-modules \ && rm -rf /usr/local/lib/prosody-community-modules/.hg \ && rm -rf /usr/local/lib/prosody-community-modules/.hgtags \ + && rm -f /usr/local/bin/busted \ && apk del .build-deps COPY ./assets/prosody.cfg.lua /usr/local/etc/prosody/prosody.cfg.lua RUN chown daemon:daemon /usr/local/var/lib/prosody -EXPOSE 5222 5269 5347 5280 5281 +EXPOSE 5000 5222 5269 5347 5280 5281 VOLUME ["/usr/local/etc/prosody", "/usr/local/var/lib/prosody"] USER daemon diff --git a/prosody/README.md b/prosody/README.md index 1c109ad..1383c0e 100644 --- a/prosody/README.md +++ b/prosody/README.md @@ -1,6 +1,6 @@ # Prosody Docker image -Create an image for running prosody XMPP server version 0.10 +Create an image for running prosody XMPP server version 0.11 http://prosody.im/ on Alpine Linux. HINT: This is not an official image. Builds might not happen regularly. @@ -22,6 +22,7 @@ certificates. Do not forget to customize your configuration! ```console $ docker run -d \ + -p 5000:5000 \ -p 5222:5222 \ -p 5269:5269 \ -p 5280:5280 \ diff --git a/prosody/assets/prosody.cfg.lua b/prosody/assets/prosody.cfg.lua index 1ae14ce..d875f52 100644 --- a/prosody/assets/prosody.cfg.lua +++ b/prosody/assets/prosody.cfg.lua @@ -88,11 +88,9 @@ modules_enabled = { "csi"; "mam"; "privacy_lists"; - "pep_vcard_avatar"; "smacks"; "smacks_offline"; "http_upload"; - "omemo_all_access"; }; -- These modules are auto-loaded, but should you want @@ -200,7 +198,7 @@ VirtualHost "example.com" ---Set up a MUC (multi-user chat) room server on conference.example.com: Component "conference.example.com" "muc" modules_enabled = { - "mam_muc"; + "muc_mam"; "remote_roster"; }