|
1 year ago | |
---|---|---|
mirror | 1 year ago | |
.drone.yml | 1 year ago | |
Dockerfile | 1 year ago | |
Makefile | 5 years ago | |
README.markdown | 1 year ago | |
mirror.run | 1 year ago | |
nginx.conf | 1 year ago | |
nginx.run | 5 years ago | |
sources.list | 1 year ago |
Docker image for syncing ubuntu LTS mirrors to reduce network traffic and speed up build times.
Then even your builds (where you can’t specify links to other containers by hostname) will go fast.
The mirror stores all the data in a docker volume at path
/var/mirror/ubuntu
. Map that somewhere else if you like.
UBUNTU_MIRROR_ARCHITECTURES
amd64
.i386,amd64
.UBUNTU_MIRROR_CATEGORIES
main,universe,restricted,multiverse
. Will use lots of disk.main,universe
.UBUNTU_MIRROR_PROJECTS
bionic,bionic-updates,bionic-security,bionic-backports,focal,focal-updates,focal-security,focal-backports
.focal,focal-updates,focal-security,focal-backports
.UBUNTU_MIRROR_UPSTREAM
- upstream server to mirror from
archive.ubuntu.com
.xx.archive.ubuntu.com
(where xx
is your country
code).UBUNTU_ENABLE_SOURCE_MIRRORING
- do we want to mirror all the source code too?
1
if you want to use up even more disk for your mirrorMIRROR_UPDATE_INTERVAL_SECONDS
- mirror update interval
43200
(12h)10800
(3h)docker rm -f local-ubuntu-mirror
docker run -d --name local-ubuntu-mirror \
-v /storage/mirrors/ubuntu:/var/mirror/ubuntu \
--env MIRROR_UPDATE_INTERVAL_SECONDS=3600 \
--env UBUNTU_MIRROR_ARCHITECTURES=amd64 \
--env UBUNTU_MIRROR_UPSTREAM=us.archive.ubuntu.com \
--env UBUNTU_MIRROR_PROJECTS=focal,focal-updates,focal-security,focal-backports \
-p 8080:80 \
--restart unless-stopped \
sneak/ubuntumirror@sha256:7de7cc8245106bb574029a2dedca5aa218af08d802b989cdc7857fb57f876a02
{
"schemaVersion": 2,
"imageName": "sneak/ubuntumirror@sha256:7de7cc8245106bb574029a2dedca5aa218af08d802b989cdc7857fb57f876a02"
}
sneak <sneak@sneak.berlin>
This software is released into the public domain.