commit 6695bafca40f285ad1794f500804ec2b14ebf114 Author: Michele Bologna Date: Sat Jun 27 13:15:03 2015 +0200 Initial import. Bitlbee 3.4.1 built from src. Fedora base container, working with either specifying a volume or without it. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e57aec --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +var/lib/bitlbee/* +!var/lib/bitlbee/.gitkeep diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8a0e406 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM fedora:latest +MAINTAINER Michele Bologna + +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"] + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c4c0770 --- /dev/null +++ b/LICENSE @@ -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. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..37c1d96 --- /dev/null +++ b/README.md @@ -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 :/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 diff --git a/etc/bitlbee/bitlbee.conf b/etc/bitlbee/bitlbee.conf new file mode 100644 index 0000000..2eee7d4 --- /dev/null +++ b/etc/bitlbee/bitlbee.conf @@ -0,0 +1,5 @@ +[settings] +RunMode = ForkDaemon +HostName = bitlbee + +[defaults] diff --git a/etc/bitlbee/motd.txt b/etc/bitlbee/motd.txt new file mode 100644 index 0000000..e66ca41 --- /dev/null +++ b/etc/bitlbee/motd.txt @@ -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? diff --git a/var/lib/bitlbee/.gitkeep b/var/lib/bitlbee/.gitkeep new file mode 100644 index 0000000..e69de29