mirror of
https://github.com/jimeh/docker-znc.git
synced 2026-02-19 01:46:42 +00:00
Build ZNC from source instead of relying on 3rd-party PPA repo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# version 0.0.2
|
||||
# docker-version 0.7.6
|
||||
# docker-version 0.11.1
|
||||
FROM ubuntu:12.04
|
||||
MAINTAINER Jim Myhrberg "contact@jimeh.me"
|
||||
|
||||
|
||||
29
bootstrap.sh
29
bootstrap.sh
@@ -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/*
|
||||
|
||||
Reference in New Issue
Block a user