Skip to content

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

License

Notifications You must be signed in to change notification settings

flavienbwk/apt-mirror-docker

Repository files navigation

apt-mirror-docker

Updated and portable apt-mirror script including the most recent pull requests, containerized for mirroring + serving

Status : tested & working ✔️

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

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 ~137G to be downloaded)

Serving

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

    If this directory is at least 120G, you can consider it worked.

  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 !