Code Monkey home page Code Monkey logo

apt-mirror-docker's Introduction

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

Serving

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

    If this directory is ~179G, 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 !

apt-mirror-docker's People

Contributors

flavienbwk avatar grimler91 avatar njenwei-ait avatar

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.