Browse Source

import

master
Vladimir Smagin 11 months ago
commit
a2361bf91f

+ 14
- 0
Dockerfile View File

@@ -0,0 +1,14 @@
FROM ubuntu:xenial


RUN apt-get ${APT_FLAGS_COMMON} update && \
apt-get ${APT_FLAGS_PERSISTENT} -y install sbnc && \
apt-get ${APT_FLAGS_COMMON} autoremove && \
apt-get ${APT_FLAGS_COMMON} clean && \
rm -rf /var/lib/apt/lists/*

RUN echo "AUTOSTART_SBNC=1" > /etc/default/sbnc
RUN usermod sbnc -s /bin/bash
RUN chown sbnc:sbnc /var/lib/sbnc -R

ENTRYPOINT ["su","-c","/usr/sbin/sbnc --foreground --data /var/lib/sbnc/ --log /var/lib/sbnc/log/ --pid /tmp/sbnc.pid","-","sbnc"]

+ 6
- 0
build_cleanup.sh View File

@@ -0,0 +1,6 @@
#!/bin/bash

docker stop sbnc
docker rm sbnc
docker rmi sbnc


+ 3
- 0
build_image.sh View File

@@ -0,0 +1,3 @@
#!/bin/bash

docker build -t sbnc .

+ 9
- 0
build_run.sh View File

@@ -0,0 +1,9 @@
#!/bin/bash

docker run -d --name sbnc \
-v /srv/docker/sbnc/etc:/etc/sbnc \
-v /srv/docker/sbnc/home:/var/lib/sbnc \
-p 9000:9000 \
--restart=always sbnc



BIN
packages/sbnc-dbg_1.3.9-3ubuntu1_amd64.deb View File


BIN
packages/sbnc-php-dev_1.3.9-3ubuntu1_all.deb View File


BIN
packages/sbnc-tcl_1.3.9-3ubuntu1_amd64.deb View File


BIN
packages/sbnc_1.3.9-3ubuntu1_amd64.deb View File


+ 44
- 0
readme.md View File

@@ -0,0 +1,44 @@
# shroudBNC 1.3.9 in Docker

Yes! This is legendary SBNC! Used repositories of Ubuntu 16.04 to get it and build this precious Docker image.

Place in `/srv/docker/sbnc/home` your predefined config files. `/var/lib/sbnc` is a user's home directory and stored in `$HOME`.

Sample config files:

$HOME/sbnc/sbnc.conf

```
system.users=vlad
system.port=9000
system.ip=0.0.0.0
system.md5=0
```

$HOME/sbnc/users/vlad.conf

```
user.password=myultrasecurepassword
user.server=irc.tomsk.net
user.realname=21h
user.port=6669
user.nick=vlad
user.admin=1
user.seen=1542914743
user.autobacklog=on
user.channels=#linux
```

Now you are ready to run it:

```
docker run -d --name sbnc \
-v /srv/docker/sbnc/home:/var/lib/sbnc \
-p 9000:9000 \
--restart=always sbnc
```

*DO NOT FORGET TO SET RIGHT FILES PERMISSIONS ON CONFIG DIRECTORIES AND FILES!*

Vladimir Smagin, 2018
http://blindage.org

+ 1
- 0
sample_configs/.oidentd.conf View File

@@ -0,0 +1 @@
global { reply "vlad" }

+ 1
- 0
sample_configs/sbnc/MOTD View File

@@ -0,0 +1 @@
BLINDAGE IRC BOUNCER WELCOMES YOU!

+ 5
- 0
sample_configs/sbnc/sbnc.conf View File

@@ -0,0 +1,5 @@
system.users=vlad
system.port=9000
system.ip=0.0.0.0
system.md5=0


+ 21
- 0
sample_configs/sbnc/sbnc.tcl View File

@@ -0,0 +1,21 @@
# This is an example configuration file for shroudBNC's TCL module
# It will be sourced whenever you (re-)load the tcl module or
# use the tcl command 'rehash' (e.g. /sbnc tcl :rehash)

# You should not modify this block
source "scripts/alltools.tcl"
source "scripts/namespace.tcl"
source "scripts/timers.tcl"
source "scripts/misc.tcl"
source "scripts/variables.tcl"
source "scripts/pushmode.tcl"
source "scripts/channel.tcl"
source "scripts/bind.tcl"
source "scripts/usys.tcl"
source "scripts/socket.tcl"
source "scripts/botnet.tcl"
source "scripts/iface2.tcl"
source "scripts/ifacecmds.tcl"
source "scripts/partyline.tcl"
source "scripts/defaultsettings.tcl"
source "scripts/auth.tcl"

+ 9
- 0
sample_configs/sbnc/users/vlad.conf View File

@@ -0,0 +1,9 @@
user.password=mypreciouspassword
user.server=irc.tomsk.net
user.realname=21h
user.port=6669
user.nick=vlad
user.admin=1
user.seen=1542914743
user.autobacklog=on
user.channels=#tlug,#python,#ipv6,#php,#linux,#coding,#tomtel

Loading…
Cancel
Save