Skip to content

Commit 48fb699

Browse files
committed
Update ZNC to v1.6.1
And also restructure the Dockerfile a bit.
1 parent 3dfefba commit 48fb699

File tree

5 files changed

+51
-70
lines changed

5 files changed

+51
-70
lines changed

Dockerfile

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1-
# version 1.4-1
2-
# docker-version 0.11.1
3-
FROM ubuntu:12.04
4-
MAINTAINER Jim Myhrberg "[email protected]"
1+
# version 1.6.1-1
2+
# docker-version 1.8.2
3+
FROM ubuntu:15.04
4+
MAINTAINER Jim Myhrberg "[email protected]"
55

6-
# We use a bootstrap script to avoid having temporary cache files and build
7-
# dependencies being committed and included into the docker image.
8-
ADD bootstrap.sh /tmp/
9-
RUN chmod +x /tmp/bootstrap.sh
10-
RUN /tmp/bootstrap.sh
6+
ENV ZNC_VERSION 1.6.1
117

12-
RUN useradd znc
13-
ADD start-znc /usr/local/bin/
14-
ADD znc.conf.default /src/
15-
RUN chmod 644 /src/znc.conf.default
8+
RUN apt-get update \
9+
&& apt-get install -y sudo wget build-essential libssl-dev libperl-dev \
10+
pkg-config swig3.0 libicu-dev \
11+
&& mkdir -p /src \
12+
&& cd /src \
13+
&& wget "http://znc.in/releases/archive/znc-${ZNC_VERSION}.tar.gz" \
14+
&& tar -zxf "znc-${ZNC_VERSION}.tar.gz" \
15+
&& cd "znc-${ZNC_VERSION}" \
16+
&& ./configure \
17+
&& make \
18+
&& make install \
19+
&& apt-get remove -y wget \
20+
&& apt-get autoremove -y \
21+
&& apt-get clean \
22+
&& rm -rf /src* /var/lib/apt/lists/* /tmp/* /var/tmp/*
1623

17-
EXPOSE 6667
18-
ENTRYPOINT ["/usr/local/bin/start-znc"]
19-
CMD [""]
24+
RUN useradd znc
25+
ADD docker-entrypoint.sh /entrypoint.sh
26+
ADD znc.conf.default /znc.conf.default
27+
RUN chmod 644 /znc.conf.default
28+
29+
VOLUME /znc-data
30+
31+
EXPOSE 6667
32+
ENTRYPOINT ["/entrypoint.sh"]
33+
CMD [""]

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Run the [ZNC](http://znc.in) IRC Bouncer in a Docker container.
1111

1212
## Running
1313

14-
To retain your ZNC settings between runs, you will need to bind a directory
15-
from the host to `/znc-data` in the container. For example:
14+
To retain your ZNC settings between runs, you'll most likely want to
15+
bind a directory from the host to `/znc-data` in the container. For
16+
example:
1617

1718
docker run -d -p 6667 -v $HOME/.znc:/znc-data jimeh/znc
1819

bootstrap.sh

Lines changed: 0 additions & 34 deletions
This file was deleted.

start-znc renamed to docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
# Create default config if it doesn't exist
2525
if [ ! -f "${DATADIR}/configs/znc.conf" ]; then
2626
mkdir -p "${DATADIR}/configs"
27-
cp /src/znc.conf.default "${DATADIR}/configs/znc.conf"
27+
cp /znc.conf.default "${DATADIR}/configs/znc.conf"
2828
fi
2929

3030
# Make sure $DATADIR is owned by znc user. This effects ownership of the

znc.conf.default

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
// But if you feel risky, you might want to read help on /znc saveconfig and /znc rehash.
99
// Also check http://en.znc.in/wiki/Configuration
1010

11-
Version = 1.4
11+
Version = 1.6.1
1212
<Listener l>
13-
Port = 6667
14-
IPv4 = true
15-
IPv6 = true
16-
SSL = false
13+
Port = 6667
14+
IPv4 = true
15+
IPv6 = true
16+
SSL = false
1717
</Listener>
1818
LoadModule = webadmin
1919

2020
<User admin>
21-
Pass = sha256#1b9a69be60544ae4a83147ebb04c4c1edc24dba4c62f8f25ef5603b06c264476#5zD6V:PYLf*jZcL8VbZY#
22-
Admin = true
23-
Nick = admin
24-
AltNick = admin_
25-
Ident = admin
26-
RealName = Got ZNC?
27-
Buffer = 50
28-
AutoClearChanBuffer = true
29-
ChanModes = +stn
21+
Pass = sha256#00793765305dfc3e7bba28267fe9d9e2c721ebef4e20f3a89720265a89ee6a4f#N!lgZM8S.HZ4zH?)vFoW#
22+
Admin = true
23+
Nick = admin
24+
AltNick = admin_
25+
Ident = admin
26+
RealName = Got ZNC?
27+
Buffer = 50
28+
AutoClearChanBuffer = true
29+
ChanModes = +stn
3030

31-
LoadModule = chansaver
32-
LoadModule = controlpanel
33-
LoadModule = perform
31+
LoadModule = chansaver
32+
LoadModule = controlpanel
33+
LoadModule = perform
3434
</User>

0 commit comments

Comments
 (0)