little tweaks
This commit is contained in:
parent
464ad422e5
commit
8ef7760586
|
@ -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
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
# HOME isn't set up for some reason
|
||||
export HOME=/root
|
||||
|
||||
# cleanup previous runs
|
||||
rm -rf /var/mirror/ubuntu/.temp
|
||||
|
||||
while true ; do
|
||||
cd /opt/mirror && make
|
||||
|
||||
sleep ${MIRROR_INTERVAL_SECONDS:-43200}
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue