2 Commits

Author SHA1 Message Date
bfc867af73 Bump version to 1.4-1
Version scheme now follows the ZNC version the container contains. The
format is "[ZNC_VERSION]-[CONTAINER_BUILD_NUMBER]".
2014-05-17 18:04:27 +01:00
3269e67261 Build ZNC from source instead of relying on 3rd-party PPA repo 2014-05-17 18:03:52 +01:00
2 changed files with 24 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
# version 0.0.2
# docker-version 0.7.6
# version 1.4-1
# docker-version 0.11.1
FROM ubuntu:12.04
MAINTAINER Jim Myhrberg "contact@jimeh.me"

View File

@@ -1,14 +1,29 @@
#! /usr/bin/env bash
set -e
# Install
apt-get install -y python-software-properties
add-apt-repository ppa:teward/znc
# Config
ZNC_VERSION="1.4"
# Install build dependencies.
apt-get update
apt-get install -y znc znc-dbg znc-dev znc-perl znc-python znc-tcl
apt-get install -y znc znc-dbg znc-dev znc-extra znc-perl znc-python znc-tcl
apt-get install -y wget build-essential libssl-dev libperl-dev pkg-config
# Prepare building
mkdir -p /src
# Download, compile and install ZNC.
cd /src
wget "http://znc.in/releases/archive/znc-${ZNC_VERSION}.tar.gz"
tar -zxf "znc-${ZNC_VERSION}.tar.gz"
cd "znc-${ZNC_VERSION}"
./configure && make && make install
# Clean up
apt-get remove -y python-software-properties
apt-get remove -y wget
apt-get autoremove -y
apt-get clean
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*