18 Commits

Author SHA1 Message Date
ezkrg
35167f6b79 revert arm build cause fail on armv7 2021-09-15 22:33:09 +02:00
ezkrg
25e728325c fix matrix plugin loading 2021-09-15 22:30:14 +02:00
ezkrg
0d38a26046 use push instead of load with multi-platform 2021-09-14 23:11:06 +02:00
ezkrg
8e32110245 no tty 2021-09-14 23:04:06 +02:00
ezkrg
91d80a98a4 sign merge #23 2021-09-14 22:59:55 +02:00
ezkrg
a9d4a4c720 markrawls - build for ARM platforms 2021-09-14 22:58:47 +02:00
Attila Szabó
6b56b0a095 Merge pull request #23 from markrawls/master
Build for ARM platforms
2021-09-14 22:52:27 +02:00
Aria Taylor
6427234ea7 Build for multiple platforms 2021-09-12 22:52:32 -04:00
ezkrg
064739d091 note mooomooos work 2021-07-14 10:58:36 +02:00
Attila Szabó
0eb2c284f7 Merge pull request #22 from mooomooo/attachments
Add flag and deps to enable attachment handling for Signal plugin
2021-07-14 10:42:59 +02:00
mooomooo
796ccbacc8 Add flag and deps to enable attachment handling for Signal plugin (see https://github.com/hoehermann/libpurple-signald/issues/9) 2021-07-13 21:38:40 +00:00
ezkrg
a087e0ad72 delete test dockerfile 2021-06-12 12:49:15 +02:00
ezkrg
e3adfa3528 copy libolm without version 2021-06-11 21:33:18 +02:00
ezkrg
9059f87b25 fix olm lib version 2021-06-11 19:56:34 +02:00
ezkrg
dc3072ee17 fix signal build 2021-06-11 19:56:03 +02:00
ezkrg
169b65f3d2 update plugins 2021-06-11 19:32:10 +02:00
ezkrg
3588344d75 add icyque link 2021-06-07 14:13:33 +02:00
ezkrg
6738827bff add icyque 2021-05-14 17:06:30 +02:00
4 changed files with 58 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ steps:
- sleep 5 - sleep 5
- docker buildx create --use --name docker --node docker --platform linux/amd64 --driver docker-container $DOCKER_HOST - docker buildx create --use --name docker --node docker --platform linux/amd64 --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin - echo $PASSWORD | docker login --username $USER --password-stdin
- docker buildx build --load --cache-from ezkrg/cache:bitlbee-libpurple --cache-to ezkrg/cache:bitlbee-libpurple -t ezkrg/bitlbee-libpurple:test . - docker buildx build --load --cache-from ezkrg/cache:bitlbee-libpurple --cache-to ezkrg/cache:bitlbee-libpurple -t ezkrg/bitlbee-libpurple:test --platform linux/amd64 .
- docker push ezkrg/bitlbee-libpurple:test - docker push ezkrg/bitlbee-libpurple:test
- name: release - name: release
@@ -44,7 +44,7 @@ steps:
- tag - tag
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: notification name: notification
@@ -71,6 +71,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 6d34136b0fc3ae4a1c12e759c5eb553b3be864760bf1efd26c3b2b00b711229a hmac: 9c778c50b9cb687fe3e1614048c082db18c4fe6f531aba5c04f0ec950a2814d1
... ...

View File

@@ -1,5 +1,21 @@
# Changelog # Changelog
## 2021-09-14 22:52:43 ([markrawls](https://github.com/markrawls))
- build for ARM platforms
## 2021-07-13 23:38:45 ([mooomooo](https://github.com/mooomooo))
- add flag and deps to enable attachment handling for Signal plugin
## 2021-06-11 19:23:13
- update hangouts
- update slack
- update rocket.chat
- update olm and matrix
- update signal
## 2021-05-14 17:05:39
- add icyque
## 2021-05-06 15:21:19 ## 2021-05-06 15:21:19
- update facebook version to 1.2.2 - update facebook version to 1.2.2
- update skypeweb to c4906b8 - update skypeweb to c4906b8

View File

@@ -129,7 +129,7 @@ RUN echo TELEGRAM=${TELEGRAM} > /tmp/status \
FROM bitlbee-build as hangouts-build FROM bitlbee-build as hangouts-build
ARG HANGOUTS=1 ARG HANGOUTS=1
ARG HANGOUTS_VERSION=efa7a53 ARG HANGOUTS_VERSION=e8c8088
RUN echo HANGOUTS=${HANGOUTS} > /tmp/status \ RUN echo HANGOUTS=${HANGOUTS} > /tmp/status \
&& if [ ${HANGOUTS} -eq 1 ]; \ && if [ ${HANGOUTS} -eq 1 ]; \
@@ -149,7 +149,7 @@ RUN echo HANGOUTS=${HANGOUTS} > /tmp/status \
FROM bitlbee-build as slack-build FROM bitlbee-build as slack-build
ARG SLACK=1 ARG SLACK=1
ARG SLACK_VERSION=2e9fa02 ARG SLACK_VERSION=e0c73ae
SHELL [ "/bin/bash", "-c" ] SHELL [ "/bin/bash", "-c" ]
@@ -220,7 +220,7 @@ RUN echo DISCORD=${DISCORD} > /tmp/status \
FROM bitlbee-build as rocketchat-build FROM bitlbee-build as rocketchat-build
ARG ROCKETCHAT=1 ARG ROCKETCHAT=1
ARG ROCKETCHAT_VERSION=5da3e14 ARG ROCKETCHAT_VERSION=62090bc
RUN echo ROCKETCHAT=${ROCKETCHAT} > /tmp/status \ RUN echo ROCKETCHAT=${ROCKETCHAT} > /tmp/status \
&& if [ ${ROCKETCHAT} -eq 1 ]; \ && if [ ${ROCKETCHAT} -eq 1 ]; \
@@ -264,8 +264,8 @@ RUN echo MASTODON=${MASTODON} > /tmp/status \
FROM bitlbee-build as matrix-build FROM bitlbee-build as matrix-build
ARG MATRIX=1 ARG MATRIX=1
ARG OLM_VERSION=3.1.4 ARG OLM_VERSION=3.2.4
ARG MATRIX_VERSION=1d23385 ARG MATRIX_VERSION=88f9558
RUN echo MATRIX=${MATRIX} > /tmp/status \ RUN echo MATRIX=${MATRIX} > /tmp/status \
&& if [ ${MATRIX} -eq 1 ]; \ && if [ ${MATRIX} -eq 1 ]; \
@@ -284,7 +284,7 @@ RUN echo MATRIX=${MATRIX} > /tmp/status \
&& make install \ && make install \
&& strip /usr/lib/purple-2/libmatrix.so; \ && strip /usr/lib/purple-2/libmatrix.so; \
else mkdir -p /usr/lib/purple-2 \ else mkdir -p /usr/lib/purple-2 \
&& ln -sf /nowhere /usr/local/lib/libolm.so.3.1.4 \ && ln -sf /nowhere /usr/local/lib/libolm.so \
&& ln -sf /nowhere /usr/lib/purple-2/libmatrix.so; \ && ln -sf /nowhere /usr/lib/purple-2/libmatrix.so; \
fi fi
@@ -293,15 +293,18 @@ RUN echo MATRIX=${MATRIX} > /tmp/status \
FROM bitlbee-build as signald-build FROM bitlbee-build as signald-build
ARG SIGNAL=1 ARG SIGNAL=1
ARG SIGNAL_VERSION=f53a118 ARG SIGNAL_VERSION=v0.8.1
RUN echo SIGNAL=${SIGNAL} > /tmp/status \ RUN echo SIGNAL=${SIGNAL} > /tmp/status \
&& if [ ${SIGNAL} -eq 1 ]; \ && if [ ${SIGNAL} -eq 1 ]; \
then cd /tmp \ then cd /tmp \
&& apk --no-cache add file-dev libmagic \
&& git clone -n https://github.com/hoehermann/libpurple-signald \ && git clone -n https://github.com/hoehermann/libpurple-signald \
&& cd libpurple-signald \ && cd libpurple-signald \
&& git checkout ${SIGNAL_VERSION} \ && git checkout ${SIGNAL_VERSION} \
&& make \ && git submodule init \
&& git submodule update \
&& make SUPPORT_EXTERNAL_ATTACHMENTS=1 \
&& make install \ && make install \
&& strip /usr/lib/purple-2/libsignald.so; \ && strip /usr/lib/purple-2/libsignald.so; \
else mkdir -p /usr/lib/purple-2 \ else mkdir -p /usr/lib/purple-2 \
@@ -310,6 +313,26 @@ RUN echo SIGNAL=${SIGNAL} > /tmp/status \
# --- # ---
FROM bitlbee-build as icyque-build
ARG ICYQUE=1
ARG ICYQUE_VERSION=4fc08a0
RUN echo ICYQUE=${ICYQUE} > /tmp/status \
&& if [ ${ICYQUE} -eq 1 ]; \
then cd /tmp \
&& git clone -n https://github.com/EionRobb/icyque.git \
&& cd icyque \
&& git checkout ${ICYQUE_VERSION} \
&& make \
&& make install \
&& strip /usr/lib/purple-2/libicyque.so; \
else mkdir -p /usr/lib/purple-2 \
&& ln -sf /nowhere /usr/lib/purple-2/libicyque.so; \
fi
# ---
FROM alpine:${ALPINE_VERSION} as bitlbee-plugins FROM alpine:${ALPINE_VERSION} as bitlbee-plugins
COPY --from=bitlbee-build /usr/sbin/bitlbee /tmp/usr/sbin/bitlbee COPY --from=bitlbee-build /usr/sbin/bitlbee /tmp/usr/sbin/bitlbee
@@ -362,13 +385,16 @@ COPY --from=mastodon-build /usr/lib/bitlbee/mastodon.la /tmp/usr/lib/bitlbee/mas
COPY --from=mastodon-build /usr/share/bitlbee/mastodon-help.txt /tmp/usr/share/bitlbee/mastodon-help.txt COPY --from=mastodon-build /usr/share/bitlbee/mastodon-help.txt /tmp/usr/share/bitlbee/mastodon-help.txt
COPY --from=mastodon-build /tmp/status /tmp/plugin/mastodon COPY --from=mastodon-build /tmp/status /tmp/plugin/mastodon
COPY --from=matrix-build /usr/local/lib/libolm.so.3.1.4 /tmp/usr/local/lib/libolm.so.3 COPY --from=matrix-build /usr/local/lib/libolm.so /tmp/usr/local/lib/libolm.so.3
COPY --from=matrix-build /usr/lib/purple-2/libmatrix.so /tmp/usr/lib/purple-2/libmatrix.so COPY --from=matrix-build /usr/lib/purple-2/libmatrix.so /tmp/usr/lib/purple-2/libmatrix.so
COPY --from=matrix-build /tmp/status /tmp/plugin/matrix COPY --from=matrix-build /tmp/status /tmp/plugin/matrix
COPY --from=signald-build /usr/lib/purple-2/libsignald.so /tmp/usr/lib/purple-2/libsignald.so COPY --from=signald-build /usr/lib/purple-2/libsignald.so /tmp/usr/lib/purple-2/libsignald.so
COPY --from=signald-build /tmp/status /tmp/plugin/signald COPY --from=signald-build /tmp/status /tmp/plugin/signald
COPY --from=icyque-build /usr/lib/purple-2/libicyque.so /tmp/usr/lib/purple-2/libicyque.so
COPY --from=icyque-build /tmp/status /tmp/plugin/icyque
RUN apk add --update --no-cache findutils \ RUN apk add --update --no-cache findutils \
&& find /tmp/ -type f -empty -delete \ && find /tmp/ -type f -empty -delete \
&& find /tmp/ -type d -empty -delete \ && find /tmp/ -type d -empty -delete \
@@ -390,10 +416,12 @@ RUN addgroup -g 101 -S bitlbee \
&& source /plugins \ && source /plugins \
&& if [ ${OTR} -eq 1 ]; then PKGS="${PKGS} libotr"; fi \ && if [ ${OTR} -eq 1 ]; then PKGS="${PKGS} libotr"; fi \
&& if [ ${FACEBOOK} -eq 1 ] || [ ${SKYPEWEB} -eq 1 ] || [ ${HANGOUTS} -eq 1 ] \ && if [ ${FACEBOOK} -eq 1 ] || [ ${SKYPEWEB} -eq 1 ] || [ ${HANGOUTS} -eq 1 ] \
|| [ ${ROCKETCHAT} -eq 1 ] || [ ${MATRIX} -eq 1 ] || [ ${SIGNAL} -eq 1 ]; then PKGS="${PKGS} json-glib"; fi \ || [ ${ROCKETCHAT} -eq 1 ] || [ ${MATRIX} -eq 1 ] || [ ${SIGNAL} -eq 1 ] \
|| [ ${ICYQUE} -eq 1 ]; then PKGS="${PKGS} json-glib"; fi \
&& if [ ${STEAM} -eq 1 ] || [ ${TELEGRAM} -eq 1 ] || [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} libgcrypt"; fi \ && if [ ${STEAM} -eq 1 ] || [ ${TELEGRAM} -eq 1 ] || [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} libgcrypt"; fi \
&& if [ ${TELEGRAM} -eq 1 ]; then PKGS="${PKGS} zlib libwebp libpng"; fi \ && if [ ${TELEGRAM} -eq 1 ]; then PKGS="${PKGS} zlib libwebp libpng"; fi \
&& if [ ${HANGOUTS} -eq 1 ] || [ ${SIGNAL} -eq 1 ]; then PKGS="${PKGS} protobuf-c"; fi \ && if [ ${HANGOUTS} -eq 1 ] || [ ${SIGNAL} -eq 1 ]; then PKGS="${PKGS} protobuf-c"; fi \
&& if [ ${SIGNAL} -eq 1 ]; then PKGS="${PKGS} libmagic"; fi \
&& if [ ${SIPE} -eq 1 ]; then PKGS="${PKGS} libxml2"; fi \ && if [ ${SIPE} -eq 1 ]; then PKGS="${PKGS} libxml2"; fi \
&& if [ ${ROCKETCHAT} -eq 1 ]; then PKGS="${PKGS} discount"; fi \ && if [ ${ROCKETCHAT} -eq 1 ]; then PKGS="${PKGS} discount"; fi \
&& if [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} sqlite http-parser"; fi \ && if [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} sqlite http-parser"; fi \

View File

@@ -13,6 +13,7 @@ This docker image includes bitlbee with a bunch of useful plugins:
- [mastodon](https://github.com/kensanata/bitlbee-mastodon) - [mastodon](https://github.com/kensanata/bitlbee-mastodon)
- [matrix](https://github.com/matrix-org/purple-matrix) - [matrix](https://github.com/matrix-org/purple-matrix)
- [signal](https://github.com/hoehermann/libpurple-signald) - [signal](https://github.com/hoehermann/libpurple-signald)
- [icyque](https://github.com/EionRobb/icyque)
The most significant being the [libpurple Slack plugin](https://github.com/dylex/slack-libpurple). As Slack is turning off its IRC gateway on May 15 2018, now is the time to spin up your own docker image and start using bitlbee instead. The most significant being the [libpurple Slack plugin](https://github.com/dylex/slack-libpurple). As Slack is turning off its IRC gateway on May 15 2018, now is the time to spin up your own docker image and start using bitlbee instead.