Giter VIP home page Giter VIP logo

Comments (13)

fredbcode avatar fredbcode commented on May 25, 2024

Nobody uses packagist-mirror without packagist.org as domain name ?

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

A despicable workaround ...

unzip packages.json.gz
sed -i 's/repo.packagist.org/myinternaldomain.int' packages.json

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@fredbcode you man installing it in ur local system to mirror ?

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

Yes I want mirroring packagist.org for users without internet access
I can now with this workaround #62 (comment)

packages.json contains "hardcoded" urls to internet domain name

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@fredbcode ok got it but the thing is this mirror script will not fully download every package in ur local / server . this requires an active internet connection. this mirror is there just to provide an quicker access to the downloadable content.

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@fredbcode this script collects data as a JSON and here you can see an example
https://packagist.in/p/varunsridharan/php-autoloader$43f855e12f3936742ebfe87275273239884f61acefeaa20fedefb270637696c3.json

that json is for this package https://packagist.org/packages/varunsridharan/php-autoloader

this script dose not download the sourcecode into local it just provides a link on where to download

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

Doh ! So packagist is not really a php mirror
There is a way to do that ?

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

Yes not a full mirror even packagist.org itself dose not download any packages into local it just provide a link to download.

from packagist-mirror.

fredbcode avatar fredbcode commented on May 25, 2024

Thank you, so there is no way to have a full mirror ? like npm, apt, python, etc ?

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

Well i dont think so . in case if u want to do that it would require around 100s OF GBs

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

Thank you, so there is no way to have a full mirror ? like npm, apt, python, etc ?

This mirror is only metadata mirror because get all code on local is huge, don't scale with time, we talk about 1.6 million os versions to be downloaded.

npm is the only that support this kind of mirror with smart download, on first call the proxy download and create a cache.

apt can point to mirror local too.

composer create an automatic local cache too, you can work on this.

from packagist-mirror.

Related Issues (20)

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.