Browse Source

Initial implementation

0.3
Chris Smith 8 years ago
commit
d1a82fca3f
2 changed files with 54 additions and 0 deletions
  1. 19
    0
      Dockerfile
  2. 35
    0
      README.md

+ 19
- 0
Dockerfile View File

@@ -0,0 +1,19 @@
1
+FROM ubuntu:xenial 
2
+MAINTAINER Chris Smith <chris87@gmail.com> 
3
+
4
+RUN \
5
+  apt-get update && \ 
6
+  apt-get -y install \
7
+    curl \
8
+    openjdk-8-jre-headless
9
+
10
+RUN curl -L -o /DFBnc.jar https://github.com/ShaneMcC/DFBnc/releases/download/0.3/dfbnc.jar
11
+
12
+EXPOSE 33262 33263
13
+
14
+VOLUME ["/var/lib/dfbnc"]
15
+
16
+WORKDIR /var/lib/dfbnc
17
+
18
+CMD ["/usr/bin/java", "-jar", "/DFBnc.jar", "--config", "/var/lib/dfbnc", "--foreground"]
19
+

+ 35
- 0
README.md View File

@@ -0,0 +1,35 @@
1
+# DFBnc Dockerfile
2
+
3
+This is a dockerised version of [DFBnc](https://github.com/ShaneMcC/DFBnc/).
4
+
5
+## Usage
6
+
7
+Create a named volume to persist data:
8
+
9
+```bash
10
+docker volume create --name dfbnc-data
11
+```
12
+
13
+Pull the image for the desired version of DFBnc:
14
+
15
+```bash
16
+docker pull csmith/dfbnc:0.3
17
+```
18
+
19
+Start a container, exposing ports as needed:
20
+
21
+```bash
22
+docker run -d --name dfbnc \
23
+              --restart always \
24
+              -p 33263 \
25
+              -v dfbnc-data:/var/lib/dfbnc \
26
+              csmith/dfbnc:0.3
27
+```
28
+
29
+The container exposes these ports:
30
+
31
+  * 33262 (unencrypted IRC connection)
32
+  * 33263 (encrypted IRC connection) 
33
+
34
+To enable encrypted connections you will need to follow the instructions
35
+on the [DFBnc wiki](https://github.com/ShaneMcC/DFBnc/wiki/SSL-Listen-Hosts).

Loading…
Cancel
Save