From 8ef77605861c75a860d1ad6da78edd02ffd61a1b Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 11 Apr 2016 02:26:57 +0200 Subject: [PATCH] little tweaks --- Dockerfile | 6 ++++-- mirror.run | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f027742..8ca34bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM phusion/baseimage:0.9.17 +FROM phusion/baseimage:0.9.18 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 +# phusion baseimage says i'm not supposed to do this +# and i don't care: +RUN apt-get update && apt-get upgrade -y RUN apt-get install -y run-one nginx make debmirror ADD ./mirror /opt/mirror diff --git a/mirror.run b/mirror.run index 23f6690..4a691b5 100644 --- a/mirror.run +++ b/mirror.run @@ -3,6 +3,11 @@ # HOME isn't set up for some reason export HOME=/root -cd /opt/mirror && make +# cleanup previous runs +rm -rf /var/mirror/ubuntu/.temp -sleep ${MIRROR_INTERVAL_SECONDS:-43200} +while true ; do + cd /opt/mirror && make + + sleep ${MIRROR_INTERVAL_SECONDS:-43200} +done