This commit is contained in:
Jeffrey Paul 2016-04-09 15:11:56 +02:00
parent b4be6b82f3
commit fbc36819ef
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
4 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,7 @@ FROM phusion/baseimage:0.9.17
VOLUME /var/mirror
ADD ./sources.list /etc/apt/sources.list
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
RUN apt-get update
RUN apt-get install -y run-one nginx make debmirror

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
default: build
build:
docker build -t sneak/ubuntumirror .

View File

@ -7,9 +7,9 @@ DST="/var/mirror"
export GNUPGHOME="/etc/debmirror/ubuntu"
debmirror \
-a i386,amd64 \
-a ${MIRROR_ARCHITECTURES:-amd64} \
--no-source \
-s main,restricted,universe,multiverse \
-s ${MIRROR_CATEGORIES:-main,universe} \
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
-d trusty,trusty-updates,trusty-security,trusty-backports \
-d xenial,xenial-updates,xenial-security,xenial-backports \

4
sources.list Normal file
View File

@ -0,0 +1,4 @@
deb http://archive.ubuntu.com/ubuntu trusty main universe
deb http://archive.ubuntu.com/ubuntu trusty-updates main universe
deb http://archive.ubuntu.com/ubuntu trusty-backports main universe
deb http://archive.ubuntu.com/ubuntu trusty-security main universe