Fix issue #3 and generally update project

This commit is contained in:
2014-01-26 12:50:05 +00:00
parent 506347539d
commit 00fbafc18f
3 changed files with 28 additions and 8 deletions

View File

@@ -1,18 +1,17 @@
# version 0.0.1
# docker-version 0.6.6
# version 0.0.2
# docker-version 0.7.6
FROM ubuntu:12.04
MAINTAINER Jim Myhrberg "contact@jimeh.me"
# Make sure the package repository is up to date.
RUN echo "deb http://archive.ubuntu.com/ubuntu precise-backports universe" >> /etc/apt/sources.list
RUN apt-get update
# Let's do this...
RUN apt-get install -y znc/precise-backports znc-dbg/precise-backports znc-dev/precise-backports znc-extra/precise-backports znc-perl/precise-backports znc-python/precise-backports znc-tcl/precise-backports && apt-get clean
# We use a bootstrap script to avoid having temporary cache files and build
# dependencies being committed and included into the docker image.
ADD bootstrap.sh /tmp/
RUN chmod +x /tmp/bootstrap.sh && /tmp/bootstrap.sh
RUN useradd znc
ADD start-znc /usr/local/bin/
ADD znc.conf.default /src/
RUN chmod 644 /src/znc.conf.default
USER znc
EXPOSE 6667

7
Makefile Normal file
View File

@@ -0,0 +1,7 @@
build:
docker build -t ${USER}/znc .
push: build
docker push ${USER}/znc
.PHONY: default

14
bootstrap.sh Normal file
View File

@@ -0,0 +1,14 @@
#! /usr/bin/env bash
# Install
apt-get install -y python-software-properties
add-apt-repository ppa:teward/znc
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
# Clean up
apt-get remove -y python-software-properties
apt-get autoremove -y
apt-get clean