From fbc36819eff7a704e3beda7a28e895e51f508dd8 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Sat, 9 Apr 2016 15:11:56 +0200 Subject: [PATCH] latest --- Dockerfile | 1 + Makefile | 4 ++++ mirror/syncubuntu.sh | 4 ++-- sources.list | 4 ++++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 sources.list diff --git a/Dockerfile b/Dockerfile index 1287af4..f027742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..94fd1e8 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +default: build + +build: + docker build -t sneak/ubuntumirror . diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index c59375f..964b341 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -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 \ diff --git a/sources.list b/sources.list new file mode 100644 index 0000000..55681a7 --- /dev/null +++ b/sources.list @@ -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