A mirror for releases of GitHub projects
1.4K
Mirroring releases of GitHub projects made easy
Many packages download prebuilt binaries from their GitHub Release. That has some disadvantages:
Especially in an enterprise environment, it's not always the best solution to depend on external servers. On the other hand, you don't want to recompile every external library on every build.
This project is a simple mirror, that downloads and keeps releases of GitHub Projects on your own server.
The easiest way is, to use docker, but you can also use the mirror.shā script manually. Recurring updates are run by cron, where every mirrored project has it's own cronjob, so you should overwrite this project's crontab with your own, in order to manage your mirrored projects.
0 3 * * * /opt/mirror.sh sass/node-sass
0 4 * * * /opt/mirror.sh electron/electron.
docker run \
-p 80:80 \
-v /path/to/your/crontab:/etc/cron.d/mirror-cron \
-v /path/to/your/storage/folder:/mirror
--name github-release-mirror \
richardklose/github-release-mirror
Use it, e.g. in .npmrc for node-sass and electron:
sass_binary_site=http://<ip-of-your-server>/sass/node-sass
electron_mirror=http://<ip-of-your-server>/electron/electron/v
You can also browse the downloaded files by opening your servers IP in a browser.
š¤ Richard Klose <[email protected]ā >
Contributions, issues and feature requests are welcome!
Feel free to check issues pageā .
Give a āļø if this project helped you!
Copyright Ā© 2019 Richard Klose <[email protected]>ā .
This project is MITā licensed.
Hey dude! Help me out for a couple of :beers:!
Content type
Image
Digest
Size
47 MB
Last updated
over 7 years ago
docker pull richardklose/github-release-mirror