apt mirror with ubuntu "disco, eon, focal" cnf fix
if other architectures are desired, like arm or arm64, just let us know
contact: [email protected]
version: "3"
services:
2004-repository:
restart: "no"
image: badsmoke/apt-mirror:1.1.1
environment:
- "ENV_DISTRO=focal"
- "ENV_INTERVAL=600"
volumes:
- ./config/ubuntu2004.list:/etc/apt/mirror.list
- /path/to/storage/ubuntu-20-04-repository:/var/spool/apt-mirror
web:
image: nginx
restart: always
ports:
- 80:80
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./config/index.html:/usr/share/nginx/html/index.html
- /path/to/storage/ubuntu-20-04-repository:/usr/share/nginx/html/2004
command: [nginx-debug, '-g', 'daemon off;']
ENV_SERVER = e.g. "de.archive.ubuntu.com/ubuntu" default: de.archive.ubuntu.com/ubuntu/
ENV_DISTRO = e.g "focal" default: none
supoorted: disco, eon, focal
ENV_INTERVAL = e.g. "600" time interval in seconds default: none
index.html
<html>
<head>
<meta charset="utf-8">
<title>Ubuntu Update Server</title>
</head>
<body>
<p>
<a href="/update/2004/">Ubuntu 2004 Repository
</p>
</body>
nginx.conf :
server {
listen 80;
root /usr/share/nginx/html;
autoindex on;
location update/2004 {
autoindex on;
}
}
mirror.list
# apt-mirror configuration file
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
#set limit_rate 300K
set nthreads 20
set _tilde 0
#
############# end config ##############
###### Ubuntu Main Repos
deb-amd64 http://de.archive.ubuntu.com/ubuntu/ focal main universe multiverse restricted
###### Ubuntu Update Repos
deb-amd64 http://de.archive.ubuntu.com/ubuntu/ focal-security main universe multiverse restricted
deb-amd64 http://de.archive.ubuntu.com/ubuntu/ focal-updates main universe multiverse restricted
deb-amd64 http://de.archive.ubuntu.com/ubuntu/ focal-proposed main universe multiverse restricted
deb-amd64 http://de.archive.ubuntu.com/ubuntu/ focal-backports main universe multiverse restricted
Content type
Image
Digest
Size
52.3 MB
Last updated
over 6 years ago
docker pull badsmoke/apt-mirror:1.1.2