rande / pkgmirror Goto Github PK
View Code? Open in Web Editor NEWPackages Mirroring
License: MIT License
Packages Mirroring
License: MIT License
First of all: thank you! The project is awesome!
The idea of having a centralised package mirrore is splendid.
I would love to see some love for rubygems as well.
Have a nice day!
Hey,
Add docker hub ?
https://docs.docker.com/registry/recipes/mirror/
Npm remove the /-/all.json
entry point. Need to find anyway to make the proxy work.
Sample: github.com/facebook/react-bower => github.com/reactjs/react-bower
Here is the run:
pkgmirror/build/darwin-amd64-pkgmirror run -file pkgmirror.toml
Configure app
Start app lifecycle
INFO[0000] Init code=packagist handler=composer server=https://packagist.org
Start HTTP Server (bind: :8765)
INFO[0000] Starting Composer Service code=packagist handler=composer server=https://packagist.org
INFO[0000] Starting a new sync... code=packagist handler=composer server=https://packagist.org
INFO[0000] Start the SSE Broker
INFO[0000] Starting SyncPackages action=SyncPackages code=packagist handler=composer server=https://packagist.org
INFO[0000] Loading packages.json action=SyncPackages code=packagist handler=composer server=https://packagist.org
INFO[0001] Loading provider information action=SyncPackages code=packagist handler=composer hash=664617ca8865fd21d411eb1559a93d5c4609a2203da3630d9953b219e8384f33 provider=p/provider-2015$%hash%.json server=https://packagist.org
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2d0a29]
goroutine 19 [running]:
panic(0x4617e0, 0xc4200120f0)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:500 +0x1a1
github.com/rande/pkgmirror/vendor/github.com/boltdb/bolt.(*DB).beginTx(0x0, 0xffffffffffffffff, 0xc420049960, 0x12ac5)
rande/pkgmirror/vendor/github.com/boltdb/bolt/db.go:470 +0x29
github.com/rande/pkgmirror/vendor/github.com/boltdb/bolt.(*DB).Begin(0x0, 0xc42030a700, 0xc4208d3280, 0xc420049988, 0xe9eb)
rande/pkgmirror/vendor/github.com/boltdb/bolt/db.go:463 +0x6e
github.com/rande/pkgmirror/vendor/github.com/boltdb/bolt.(*DB).View(0x0, 0xc420049d08, 0x0, 0x0)
rande/pkgmirror/vendor/github.com/boltdb/bolt/db.go:610 +0x46
github.com/rande/pkgmirror/mirror/composer.(*ComposerService).SyncPackages(0xc4201a3470, 0xc42020df80, 0x1)
rande/pkgmirror/mirror/composer/composer.go:226 +0x1083
github.com/rande/pkgmirror/mirror/composer.(*ComposerService).Serve.func1()
rande/pkgmirror/mirror/composer/composer.go:77 +0xcd
created by github.com/rande/pkgmirror/mirror/composer.(*ComposerService).Serve
rande/pkgmirror/mirror/composer/composer.go:85 +0x15a
DataDir = "/Users/fabien/packagist-miror/data"
CacheDir = "/Users/fabien/packagist-miror/cache"
PublicServer = "http://127.0.0.1"
InternalServer = ":8765"
[Composer]
[Composer.packagist]
Server = "https://packagist.org"
Enabled = true
Icon = "https://getcomposer.org/img/logo-composer-transparent.png"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.