From a698108be5d7bd22c80444611ae429c6f192be27 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 23 Feb 2023 23:09:11 +0330 Subject: added mattermost --- Dockerfile.debian | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Dockerfile.debian b/Dockerfile.debian index 799c4c9..8302320 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -341,6 +341,28 @@ RUN echo SIGNAL=${SIGNAL} > /tmp/status \ # --- +FROM bitlbee-build as mattermost-build + +ARG MATTERMOST=1 +ARG MATTERMOST_VERSION=v2.1 + +RUN echo MATTERMOST=${MATTERMOST} > /tmp/status \ + && if [ ${MATTERMOST} -eq 1 ]; \ + then cd /tmp \ + && apt-get update \ + && apt-get install -y libjson-glib-dev libglib2.0-dev git make libmarkdown2-dev build-essential \ + && git clone https://github.com/EionRobb/purple-mattermost.git \ + && cd purple-mattermost \ + && git checkout ${MATTERMOST_VERSION} \ + && make -j$(nproc --ignore 2) \ + && make install \ + && strip /usr/lib/purple-2/libmattermost.so; \ + else mkdir -p /usr/lib/purple-2 \ + && ln -sf /nowhere /usr/lib/purple-2/libmattermost.so; \ + fi + +# --- + FROM bitlbee-build as icyque-build ARG ICYQUE=1 @@ -484,6 +506,9 @@ COPY --from=whatsapp-build /tmp/status /tmp/plugin/whatsapp COPY --from=lurch-build /usr/lib/purple-2/lurch.so /tmp/usr/lib/purple-2/lurch.so COPY --from=lurch-build /tmp/status /tmp/plugin/lurch +COPY --from=mattermost-build /usr/lib/purple-2/libmattermost.so /tmp/usr/lib/purple-2/libmattermost.so +COPY --from=mattermost-build /tmp/status /tmp/plugin/mattermost + RUN apt-get update \ && apt-get install -y --no-install-recommends findutils \ && find /tmp/ -type f -empty -delete \ -- cgit v1.2.3