Jeffrey Paul abac966eca | ||
---|---|---|
mirror | ||
.drone.yml | ||
Dockerfile | ||
Makefile | ||
README.markdown | ||
docker-compose.yml | ||
mirror.run | ||
nginx.conf | ||
nginx.run | ||
sources.list | ||
start-local-mirror.sh |
README.markdown
sneak/ubuntumirror
Docker container for syncing bionic ubuntu LTS mirrors to reduce network traffic and speed up build times.
Then even your builds (where you can't specify links) will go fast.
Levers
MIRROR_ARCHITECTURES
- default
amd64
. - You may want
i386,amd64
.
- default
MIRROR_CATEGORIES
- default
main,universe
. - You may want
main,universe,restricted,multiverse
. Will use lots of disk.
- default
UBUNTU_MIRROR_PROJECTS
- default
xenial,xenial-updates,xenial-security,xenial-backports,bionic,bionic-updates,bionic-security,bionic-backports
.
- default
UBUNTU_MIRROR_SOURCE
- default
archive.ubuntu.com
. - You may want
xx.archive.ubuntu.com
(wherexx
is your country code).
- default
MIRROR_INTERVAL_SECONDS
- mirror sync interval- default
43200
(12h) - You may want
10800
(3h)
- default
Example dnsmasq setup
apt update && apt -y install dnsmasq
echo address=/mirrors.ubuntu.com/172.17.0.1 > /etc/dnsmasq.d/ubuntu-mirror-local
Then, just add --dns 172.17.0.1
to your /etc/default/docker opts
and bounce the docker daemon. Future containers will talk to your local
mirror.