seems to work now
This commit is contained in:
parent
cabc1dbeb9
commit
12aa409cad
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue