[bitlbee] Entire bitlbee setup
This commit is contained in:
parent
83eb026d3e
commit
2ff9b1bd3c
6 changed files with 103 additions and 0 deletions
24
bitlbee/Dockerfile
Normal file
24
bitlbee/Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM alpine
|
||||
MAINTAINER Vincent Ambo <tazjin@gmail.com>
|
||||
|
||||
# Install bitlbee packages
|
||||
RUN apk update && \
|
||||
apk add bitlbee bitlbee-otr bitlbee-doc ca-certificates curl gnutls
|
||||
|
||||
# Install stunnel
|
||||
RUN echo "http://dl-3.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
|
||||
RUN apk update && apk add stunnel
|
||||
|
||||
# Add a user for bitlbee
|
||||
RUN adduser -D bitlbee
|
||||
|
||||
# Add bitlbee configuration
|
||||
ADD bitlbee.conf /etc/bitlbee/bitlbee.conf
|
||||
ADD motd.txt /etc/bitlbee/motd.txt
|
||||
|
||||
# Add stunnel configuration
|
||||
ADD stunnel.conf /etc/bitlbee/stunnel.conf
|
||||
|
||||
EXPOSE 6697
|
||||
|
||||
CMD bitlbee -F && stunnel /etc/bitlbee/stunnel.conf
|
38
bitlbee/bitlbee-rc.yaml
Normal file
38
bitlbee/bitlbee-rc.yaml
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
name: bitlbee-v1
|
||||
labels:
|
||||
app: bitlbee
|
||||
spec: v1
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
app: bitlbee
|
||||
spec: v1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bitlbee
|
||||
spec: v1
|
||||
spec:
|
||||
containers:
|
||||
- image: eu.gcr.io/composite-watch-759/bitlbee
|
||||
imagePullPolicy: Always
|
||||
name: bitlbee
|
||||
volumeMounts:
|
||||
- name: tazj-in-tls
|
||||
mountPath: /etc/bitlbee/tls
|
||||
- name: bitlbee-storage
|
||||
mountPath: /var/lib/bitlbee
|
||||
ports:
|
||||
- containerPort: 6697
|
||||
volumes:
|
||||
- name: tazj-in-tls
|
||||
secret:
|
||||
secretName: tazj-in-tls
|
||||
- name: bitlbee-storage
|
||||
gcePersistentDisk:
|
||||
pdName: bitlbee-storage
|
||||
fsType: ext4
|
15
bitlbee/bitlbee-svc.yaml
Normal file
15
bitlbee/bitlbee-svc.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bitlbee
|
||||
labels:
|
||||
app: bitlbee
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: bitlbee
|
||||
ports:
|
||||
- port: 6697
|
||||
targetPort: 6697
|
||||
name: irc-tls
|
11
bitlbee/bitlbee.conf
Normal file
11
bitlbee/bitlbee.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
[settings]
|
||||
User = bitlbee
|
||||
HostName = bitlbee.tazj.in
|
||||
ConfigDir = /var/lib/bitlbee
|
||||
|
||||
AuthMode = Closed
|
||||
AuthPassword = md5:sehKBm6gtplh6/K0Dn6DOo0crlRH
|
||||
OperPassword = md5:lP81y2wzU5pSwOtTEI37ewrSSlda
|
||||
|
||||
[defaults]
|
||||
private = 1
|
6
bitlbee/motd.txt
Normal file
6
bitlbee/motd.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
Welcome to tazjin's bitlbee server!
|
||||
|
||||
While this server may appear as if it's open to the public, you are in no way
|
||||
safe from me reading your communication or randomly terminating the service.
|
||||
|
||||
Use at your own peril, unless you are me.
|
9
bitlbee/stunnel.conf
Normal file
9
bitlbee/stunnel.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
setuid = nobody
|
||||
setgid = nogroup
|
||||
foreground = yes
|
||||
|
||||
[bitlbee]
|
||||
accept = 6697
|
||||
connect = 6667
|
||||
cert = /etc/bitlbee/tls/tls.key
|
||||
key = /etc/bitlbee/tls/tls.crt
|
Loading…
Reference in a new issue