Go to file
2020-02-15 09:55:25 -08:00
mirror update for focal, also to support source mirror 2020-02-15 09:55:25 -08:00
.drone.yml Update '.drone.yml' 2020-02-15 17:39:38 +00:00
Dockerfile update for focal, also to support source mirror 2020-02-15 09:55:25 -08:00
Makefile latest 2016-04-09 19:23:37 +02:00
mirror.run little tweaks 2016-04-11 02:26:57 +02:00
nginx.conf now serves /mirrors.txt to support ubuntu mirror:// urls 2016-04-11 04:36:47 +02:00
nginx.run initial 2016-04-08 22:41:48 +02:00
README.markdown Merge branch 'master' of github.com:sneak/docker-ubuntumirror 2019-01-25 03:12:31 +00:00
sources.list updates 2019-01-25 06:10:37 +00:00
start-local-mirror.sh prepping for release in caprover 2020-02-08 05:29:08 -08:00

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.
  • MIRROR_CATEGORIES
    • default main,universe.
    • You may want main,universe,restricted,multiverse. Will use lots of disk.
  • UBUNTU_MIRROR_PROJECTS
    • default xenial,xenial-updates,xenial-security,xenial-backports,bionic,bionic-updates,bionic-security,bionic-backports.
  • UBUNTU_MIRROR_SOURCE
    • 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

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.