Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.9 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.9 KB

apt-mirror-docker

Up to date apt-mirror script, containerized for mirroring + serving.

This repository merges geosone's and liedekef's updates from the (sadly) unmaintained apt-mirror repository

Status : tested & working ✔️

To know

An Ubuntu archive mirror may update every 6 hours (4 times a day, timezone depending on mirror's location). To avoid a bad sync, launch sync of your mirror ~15 minutes after midnight, 6am, noon or 6pm (consider mirror's timezone).

That is to say your download time shoudln't exceed 6 hours to be safe : that's why I recommended using a cloud provider for download and then retrieve it with rsync for example.

Downloading & updating

  1. Edit the mirror.list file at your convenience

  2. Run the mirror container :

    docker-compose build
    docker-compose up mirror

This repository is shipped with the Ubuntu 18.04 default mirror.list (expect ~210Gb to be downloaded)

Serving

  1. Check your mirroring succeeded in ./mirror/mirror/* or typing du -sh ./mirror

    You are expected to download around 210 Gb of files at the time of writing.

  2. Run the server :

    docker-compose up -d server

    Server will run on localhost:8080

👉 Feel free to add a reverse proxy or update the nginx configuration file to secure the mirror with SSL/TLS
👉 Feel free to send pull requests as well !