Giter VIP home page Giter VIP logo

mirrorly's Introduction

mirrorly

A parallel replacement for apt-mirror

Running with Docker

Building

docker build -t mirrorly .

Running with default values

mkdir </path/to/mirror>
docker run --rm -v </path/to/mirror>:/mirror mirrorly

Running with custom mirrorly.conf and mirror.list

mkdir </path/to/mirror>
docker run --rm -v </path/to/mirror>:/mirror -v </path/to/mirrorly.conf>:/etc/mirrorly.conf -v </path/to/mirror.list>:/etc/apt/mirror.list mirrorly

Running

  1. Copy mirrorly.conf to /etc
  2. Copy mirror.list to /etc/apt
  3. Run mirrorly

Steps mirrorly runs

Phase 0

  1. Collect repos from mirror.list

Phase 1

  1. Download Packages.gz from mirror
  2. Assemble list of sizes/urls/paths and md5sums
  3. Check which files are already present on disk
  4. Make a list of files that are not present on disk
  5. Download needed files via curl+parallel

Phase 2

  1. Download needed things in dist
  2. Make a list of files that are not present in Packages.gz
  3. Remove unneeded files on disk

mirrorly's People

Contributors

jadams avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mirrorly's Issues

Dynamically add apt repos

Allow for a ENV VAR or some other config option to specify additional apt repos would be ๐ŸคŒ

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.