latest
This commit is contained in:
parent
b4be6b82f3
commit
fbc36819ef
@ -2,6 +2,7 @@ FROM phusion/baseimage:0.9.17
|
|||||||
|
|
||||||
VOLUME /var/mirror
|
VOLUME /var/mirror
|
||||||
|
|
||||||
|
ADD ./sources.list /etc/apt/sources.list
|
||||||
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y run-one nginx make debmirror
|
RUN apt-get install -y run-one nginx make debmirror
|
||||||
|
4
Makefile
Normal file
4
Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
default: build
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t sneak/ubuntumirror .
|
@ -7,9 +7,9 @@ DST="/var/mirror"
|
|||||||
export GNUPGHOME="/etc/debmirror/ubuntu"
|
export GNUPGHOME="/etc/debmirror/ubuntu"
|
||||||
|
|
||||||
debmirror \
|
debmirror \
|
||||||
-a i386,amd64 \
|
-a ${MIRROR_ARCHITECTURES:-amd64} \
|
||||||
--no-source \
|
--no-source \
|
||||||
-s main,restricted,universe,multiverse \
|
-s ${MIRROR_CATEGORIES:-main,universe} \
|
||||||
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
|
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
|
||||||
-d trusty,trusty-updates,trusty-security,trusty-backports \
|
-d trusty,trusty-updates,trusty-security,trusty-backports \
|
||||||
-d xenial,xenial-updates,xenial-security,xenial-backports \
|
-d xenial,xenial-updates,xenial-security,xenial-backports \
|
||||||
|
4
sources.list
Normal file
4
sources.list
Normal 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
|
Loading…
Reference in New Issue
Block a user