Initial commit.

This commit is contained in:
Stanislav Nikitin 2020-01-08 13:10:43 +05:00
commit d4cdf24cac
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
3 changed files with 101 additions and 0 deletions

42
.drone.yml Normal file
View File

@ -0,0 +1,42 @@
---
kind: pipeline
type: docker
name: build
steps:
- name: notify-start
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
- name: docker
image: plugins/docker
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/bitlbee-no-libpurple
auto_tag: true
- name: notify-end
when:
status:
- success
- failure
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_secret
message: "
{{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
{{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
{{/success}}"

56
Dockerfile Normal file
View File

@ -0,0 +1,56 @@
FROM alpine:latest
ENV BITLBEE_COMMIT=3a547ee9dcf5c790f68ee2118389dd27ed471b23 \
RUNTIME_DEPS=" \
cyrus-sasl \
cyrus-sasl-crammd5 \
cyrus-sasl-digestmd5 \
cyrus-sasl-scram \
cyrus-sasl-plain \
glib \
gnutls \
json-glib \
libevent \
libgcrypt \
libotr \
libsasl \
openldap"
# bitlbee
RUN apk add --update --no-cache --virtual build-dependencies \
build-base \
git \
glib-dev \
gnutls-dev \
libevent-dev \
libotr-dev \
openldap-dev; \
apk add --no-cache --virtual runtime-dependencies ${RUNTIME_DEPS}; \
cd /root; \
git clone -n https://github.com/bitlbee/bitlbee; \
cd bitlbee; \
git checkout ${BITLBEE_COMMIT}; \
cp bitlbee.conf /bitlbee.conf; \
mkdir /bitlbee-data; \
./configure --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --debug=0 --events=libevent --ldap=1 --otr=plugin --purple=1 --config=/bitlbee-data; \
make; \
make install; \
make install-dev; \
make install-etc; \
adduser -u 1000 -S bitlbee; \
addgroup -g 1000 -S bitlbee; \
chown -R bitlbee:bitlbee /bitlbee-data; \
touch /var/run/bitlbee.pid; \
chown bitlbee:bitlbee /var/run/bitlbee.pid; \
rm -rf /root; \
mkdir /root; \
apk del --purge build-dependencies
# Install runtime dependencies
RUN apk add --no-cache ${RUNTIME_DEPS}
EXPOSE 6667
VOLUME /bitlbee-data
USER bitlbee
ENTRYPOINT ["/usr/local/sbin/bitlbee", "-F", "-n", "-d", "/bitlbee-data", "-c", "/bitlbee.conf"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Bitlbee no libpurple
Container for Bitlbee based on Alpine Linux. It is running latest bitlbee built WITHOUT libpurple support from git.