Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
/ debmirror Public archive

Download & serve an Ubuntu or Debian mirror. An alternative to apt-mirror.

Notifications You must be signed in to change notification settings

flavienbwk/debmirror

Repository files navigation

debmirror

Dockerized debmirror script for mirroring + serving

Status : tested & working ✔️

TL;DR : This repository allows you to create & update your own Ubuntu or Debian mirror. You can then use it offline.

Downloading & updating

  1. Edit the mirrorbuild.sh 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 configuration (expect ~137G to be downloaded)

  3. (optional) Add a CRON job to keep your mirror up to date :

    After typing crontab -e in your shell, add :

    0 */12 * * * docker-compose -f /path/to/debmirror/docker-compose.yml up mirror > /path/to/debmirror/logs/cron.log 2>&1

    This CRON job will run every 12th hour

Serving

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

    If this directory is at least 130G, 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 !

About

Download & serve an Ubuntu or Debian mirror. An alternative to apt-mirror.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published