mirror of
https://github.com/jimeh/docker-znc.git
synced 2026-02-19 09:56:43 +00:00
Fix issue #3 and generally update project
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,18 +1,17 @@
|
|||||||
# version 0.0.1
|
# version 0.0.2
|
||||||
# docker-version 0.6.6
|
# docker-version 0.7.6
|
||||||
FROM ubuntu:12.04
|
FROM ubuntu:12.04
|
||||||
MAINTAINER Jim Myhrberg "contact@jimeh.me"
|
MAINTAINER Jim Myhrberg "contact@jimeh.me"
|
||||||
|
|
||||||
# Make sure the package repository is up to date.
|
# We use a bootstrap script to avoid having temporary cache files and build
|
||||||
RUN echo "deb http://archive.ubuntu.com/ubuntu precise-backports universe" >> /etc/apt/sources.list
|
# dependencies being committed and included into the docker image.
|
||||||
RUN apt-get update
|
ADD bootstrap.sh /tmp/
|
||||||
|
RUN chmod +x /tmp/bootstrap.sh && /tmp/bootstrap.sh
|
||||||
# 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
|
|
||||||
|
|
||||||
RUN useradd znc
|
RUN useradd znc
|
||||||
ADD start-znc /usr/local/bin/
|
ADD start-znc /usr/local/bin/
|
||||||
ADD znc.conf.default /src/
|
ADD znc.conf.default /src/
|
||||||
|
RUN chmod 644 /src/znc.conf.default
|
||||||
|
|
||||||
USER znc
|
USER znc
|
||||||
EXPOSE 6667
|
EXPOSE 6667
|
||||||
|
|||||||
7
Makefile
Normal file
7
Makefile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
build:
|
||||||
|
docker build -t ${USER}/znc .
|
||||||
|
|
||||||
|
push: build
|
||||||
|
docker push ${USER}/znc
|
||||||
|
|
||||||
|
.PHONY: default
|
||||||
14
bootstrap.sh
Normal file
14
bootstrap.sh
Normal 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
|
||||||
Reference in New Issue
Block a user