Using Docker to construct your APT(Advanced Packaging Tools) mirror HTTP server
Go to file
Terry Chen f8896a5dea add default sleep value and update README.md 2015-08-14 10:02:56 +08:00
Dockerfile Update Dockerfile and README.md 2015-08-12 12:34:38 +08:00
README.md add default sleep value and update README.md 2015-08-14 10:02:56 +08:00
mirror.list add a var TIMEOUT to repeatedly execute apt-mirror 2015-08-14 09:37:05 +08:00
setup.sh add default sleep value and update README.md 2015-08-14 10:02:56 +08:00

README.md

apt-mirror-http-server

Base on Ubuntu, using Docker to construct your Apt mirror HTTP server

Usage

Running command

docker run -v /path/data:/var/spool/apt-mirror \
           -v /path/your/mirror.list:/etc/apt/mirror.list \
           -e TIMEOUT=timeout-value
           -d -p port_number:80 seterrychen/apt-mirror-http-server

/path/data is where to store data, and the TIMEOUT var to repeatedly execute apt-mirror.

If you don't setting variable of mirror.list and TIMEOUT, it will using the default mirror.list, and the default TIMEOUT is 6 hours. To see the TIMEOUT format description

Note

It will take time to download, then start http server. Using docker logs -f container-id to check the process.