seems to work now

This commit is contained in:
Jeffrey Paul 2016-04-09 16:18:35 +02:00
parent cabc1dbeb9
commit 12aa409cad
4 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,9 @@ Then even your builds (where you can't specify links) will go fast.
* default `archive.ubuntu.com`.
* You may want `xx.archive.ubuntu.com` (where `xx` is your country
code).
* `MIRROR_INTERVAL_SECONDS` - mirror sync interval
* default `43200` (12h)
* You may want `10800` (3h)
# Example dnsmasq setup

View File

@ -6,7 +6,7 @@ services:
image: sneak/ubuntumirror
network_mode: bridge
volumes:
- "/storage/nobackup/mirrors:/var/mirror"
- "/var/mirror:/var/mirror"
ports:
- "172.17.0.1:80:80"
environment:

View File

@ -1,5 +1,8 @@
#!/bin/bash
# HOME isn't set up for some reason
export HOME=/root
cd /opt/mirror && make
sleep ${MIRROR_INTERVAL_SECONDS:-43200}

View File

@ -4,6 +4,8 @@ set -x
THISDIR="$(cd $(dirname "$BASH_SOURCE") && pwd -P)"
DST="/var/mirror"
mkdir -p "$DST/ubuntu"
export GNUPGHOME="/etc/debmirror/ubuntu"
debmirror \