Code Monkey home page Code Monkey logo

debmirror's Introduction

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 !

debmirror's People

Contributors

flavienbwk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

debmirror's Issues

Problem when trying to mirror focal

When using debmirror to mirror Ubuntu Focal it seems to miss release file and DEP-11 information and hash information. It works on Bionic but no release after that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.