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`.
|
* default `archive.ubuntu.com`.
|
||||||
* You may want `xx.archive.ubuntu.com` (where `xx` is your country
|
* You may want `xx.archive.ubuntu.com` (where `xx` is your country
|
||||||
code).
|
code).
|
||||||
|
* `MIRROR_INTERVAL_SECONDS` - mirror sync interval
|
||||||
|
* default `43200` (12h)
|
||||||
|
* You may want `10800` (3h)
|
||||||
|
|
||||||
# Example dnsmasq setup
|
# Example dnsmasq setup
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
image: sneak/ubuntumirror
|
image: sneak/ubuntumirror
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
volumes:
|
volumes:
|
||||||
- "/storage/nobackup/mirrors:/var/mirror"
|
- "/var/mirror:/var/mirror"
|
||||||
ports:
|
ports:
|
||||||
- "172.17.0.1:80:80"
|
- "172.17.0.1:80:80"
|
||||||
environment:
|
environment:
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# HOME isn't set up for some reason
|
||||||
|
export HOME=/root
|
||||||
|
|
||||||
cd /opt/mirror && make
|
cd /opt/mirror && make
|
||||||
|
|
||||||
sleep ${MIRROR_INTERVAL_SECONDS:-43200}
|
sleep ${MIRROR_INTERVAL_SECONDS:-43200}
|
||||||
|
@ -4,6 +4,8 @@ set -x
|
|||||||
THISDIR="$(cd $(dirname "$BASH_SOURCE") && pwd -P)"
|
THISDIR="$(cd $(dirname "$BASH_SOURCE") && pwd -P)"
|
||||||
DST="/var/mirror"
|
DST="/var/mirror"
|
||||||
|
|
||||||
|
mkdir -p "$DST/ubuntu"
|
||||||
|
|
||||||
export GNUPGHOME="/etc/debmirror/ubuntu"
|
export GNUPGHOME="/etc/debmirror/ubuntu"
|
||||||
|
|
||||||
debmirror \
|
debmirror \
|
||||||
|
Loading…
Reference in New Issue
Block a user