Dockerized [debmirror](https://help.ubuntu.com/community/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.
-
Edit the
mirrorbuild.sh
file at your convenience -
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)
-
Check your mirroring succeeded in
./mirror/mirror/*
or typingdu -sh ./mirror
If this directory is at least 130G, you can consider it worked.
-
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 !