You've already forked docker-bitlbee
Initial import. Bitlbee 3.4.1 built from src.
Fedora base container, working with either specifying a volume or without it.
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
var/lib/bitlbee/*
|
||||||
|
!var/lib/bitlbee/.gitkeep
|
||||||
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
FROM fedora:latest
|
||||||
|
MAINTAINER Michele Bologna <michele.bologna@gmail.com>
|
||||||
|
|
||||||
|
ENV VERSION=3.4.1
|
||||||
|
|
||||||
|
RUN dnf -y install tar gcc make gnutls-devel glib2-devel \
|
||||||
|
libgcrypt-devel libotr-devel && \
|
||||||
|
cd && \
|
||||||
|
curl -LO# http://get.bitlbee.org/src/bitlbee-$VERSION.tar.gz && \
|
||||||
|
tar zxvf bitlbee-$VERSION.tar.gz && \
|
||||||
|
cd bitlbee-$VERSION && \
|
||||||
|
./configure --otr=1 --skype=1 && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
make install-etc && \
|
||||||
|
dnf -y erase tar && \
|
||||||
|
dnf clean all && \
|
||||||
|
cd && \
|
||||||
|
rm -fr bitlbee-$VERSION* && \
|
||||||
|
mkdir -p /var/lib/bitlbee && \
|
||||||
|
chown -R daemon:daemon /var/lib/bitlbee* # dup: otherwise it won't be chown'ed when using volumes
|
||||||
|
|
||||||
|
ADD etc/bitlbee/bitlbee.conf /usr/local/etc/bitlbee/bitlbee.conf
|
||||||
|
ADD etc/bitlbee/motd.txt /usr/local/etc/bitlbee/motd.txt
|
||||||
|
|
||||||
|
VOLUME ["/var/lib/bitlbee"]
|
||||||
|
RUN touch /var/run/bitlbee.pid && \
|
||||||
|
chown daemon:daemon /var/run/bitlbee.pid && \
|
||||||
|
chown -R daemon:daemon /usr/local/etc/* && \
|
||||||
|
chown -R daemon:daemon /var/lib/bitlbee* # dup: otherwise it won't be chown'ed when using volumes
|
||||||
|
USER daemon
|
||||||
|
EXPOSE 6667
|
||||||
|
CMD ["/usr/local/sbin/bitlbee", "-c", "/usr/local/etc/bitlbee/bitlbee.conf", "-n", "-u", "daemon"]
|
||||||
|
|
||||||
22
LICENSE
Normal file
22
LICENSE
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 Michele Bologna
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
36
README.md
Normal file
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# bitlbee Dockerfile
|
||||||
|
This repository contains **Dockerfile** of [*bitlbee*](https://github.com/bitlbee/bitlbee), for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/mbologna/bitlbee/) published to the public [Docker Hub Registry](https://registry.hub.docker.com/).
|
||||||
|
|
||||||
|
## Base Docker image
|
||||||
|
|
||||||
|
* fedora/latest
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
1. Install [Docker](https://www.docker.com/).
|
||||||
|
|
||||||
|
2. Download [automated build](https://registry.hub.docker.com/u/mbologna/docker-bitlbee/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull mbologna/docker-bitlbee`
|
||||||
|
|
||||||
|
(alternatively, you can build an image from Dockerfile: `docker build -t="mbologna/docker-bitlbee" github.com/mbologna/docker-bitlbee`)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### (optional and only for those who build the image) configure bitlbee
|
||||||
|
|
||||||
|
customize etc/bitlbee/bitlbee.conf to suit your needs
|
||||||
|
|
||||||
|
### run bitlbee
|
||||||
|
|
||||||
|
`docker run -d --name bitlbee -p 16667:6667 --restart=always mbologna/docker-bitlbee`
|
||||||
|
|
||||||
|
### run bitlbee with persistent config file (`username.xml`)
|
||||||
|
|
||||||
|
`docker run -d --name bitlbee -p 16667:6667 --restart=always -v <data-dir>:/var/lib/bitlbee mbologna/docker-bitlbee`
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
1. Fork it
|
||||||
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||||
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
||||||
|
4. Push to the branch (`git push origin my-new-feature`)
|
||||||
|
5. Create new Pull Request
|
||||||
5
etc/bitlbee/bitlbee.conf
Normal file
5
etc/bitlbee/bitlbee.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[settings]
|
||||||
|
RunMode = ForkDaemon
|
||||||
|
HostName = bitlbee
|
||||||
|
|
||||||
|
[defaults]
|
||||||
16
etc/bitlbee/motd.txt
Normal file
16
etc/bitlbee/motd.txt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Welcome to the BitlBee server at %h.
|
||||||
|
|
||||||
|
This server is running BitlBee version %v.
|
||||||
|
The newest version can be found on http://www.bitlbee.org/
|
||||||
|
|
||||||
|
You are getting this message because the server administrator has not
|
||||||
|
yet had the time (or need) to change it.
|
||||||
|
|
||||||
|
For those who don't know it yet, this is not quite a regular Internet
|
||||||
|
Relay Chat server. Please see the site mentioned above for more
|
||||||
|
information.
|
||||||
|
|
||||||
|
The developers of the Bee hope you have a buzzing time.
|
||||||
|
-- BitlBee development team.
|
||||||
|
|
||||||
|
... Buzzing, haha, get it?
|
||||||
0
var/lib/bitlbee/.gitkeep
Normal file
0
var/lib/bitlbee/.gitkeep
Normal file
Reference in New Issue
Block a user