All Projects β†’ webysther β†’ packagist-mirror-docker

webysther / packagist-mirror-docker

Licence: MIT license
πŸ‹πŸ“¦βœ‚οΈπŸ“‹πŸ“¦ Docker image of packagist mirror

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to packagist-mirror-docker

Composer Mirror
Composer ε…¨ι‡ι•œεƒε‘εΈƒδΊŽ2017εΉ΄3ζœˆοΌŒζ›ΎδΈι—΄ζ–­θΏθ‘Œ2εΉ΄ε€šγ€‚θΏ™δΈͺεΌ€ζΊζœ‰εŠ©δΊŽη†θ§£ Composer ι•œεƒηš„ε·₯δ½œεŽŸη†
Stars: ✭ 607 (+2067.86%)
Mutual labels:  packagist, mirror
Awesome Composer
😎 A curated awesome list for Composer, Packagist, Satis, Plugins, Scripts, Composer related resources, tutorials.
Stars: ✭ 738 (+2535.71%)
Mutual labels:  packagist, composer-packages
Packagist Mirror
Alibaba Cloud Packagist Mirror
Stars: ✭ 63 (+125%)
Mutual labels:  packagist, mirror
Satis
Simple static Composer repository generator - For a full private Composer repo use Private Packagist
Stars: ✭ 2,722 (+9621.43%)
Mutual labels:  packagist
MirrorReflectionEffectForUGUI
A simple mirror reflection effect for a uGUI without reflection probes or shaders.
Stars: ✭ 99 (+253.57%)
Mutual labels:  mirror
silk
A modern API for WordPress.
Stars: ✭ 62 (+121.43%)
Mutual labels:  packagist
picol
(Fossil repository mirror) A tiny interpreter
Stars: ✭ 19 (-32.14%)
Mutual labels:  mirror
Artisan Gui
Simple but yet powerful library for running almost all artisan commands.
Stars: ✭ 226 (+707.14%)
Mutual labels:  packagist
shape-json
Module used to convert a flat json array into a nested json object with a predefined scheme
Stars: ✭ 31 (+10.71%)
Mutual labels:  mirror
addon-magicmirror
MagicMirrorΒ² - Home Assistant Community Add-ons
Stars: ✭ 40 (+42.86%)
Mutual labels:  mirror
Team-Capture
Team-Capture - A multiplayer FPS game, inspired by games like Quake and TF2. Done in Unity
Stars: ✭ 81 (+189.29%)
Mutual labels:  mirror
vreddit-mirror-bot
πŸŽ₯ Reddit bot that mirrors videos hosted on the native Reddit player to Gfycat and Streamable.
Stars: ✭ 23 (-17.86%)
Mutual labels:  mirror
magento1-open-source-patches
Magento Open Source 1.x patches mirror repository.
Stars: ✭ 38 (+35.71%)
Mutual labels:  mirror
LoaderX-Bot
Original repo - https://github.com/lzzy12/python-aria-mirror-bot
Stars: ✭ 59 (+110.71%)
Mutual labels:  mirror
mastodon-to-twitter
Mas2tter - the Mastodon-to-Twitter Mirrorbot
Stars: ✭ 22 (-21.43%)
Mutual labels:  mirror
Asset Packagist
Asset Packagist
Stars: ✭ 235 (+739.29%)
Mutual labels:  packagist
homebrew-bottle-mirror
mirror tool to sync homebrew bottle files
Stars: ✭ 36 (+28.57%)
Mutual labels:  mirror
HabboAPI
A PHP wrapper for the (undocumented) Habbo API
Stars: ✭ 34 (+21.43%)
Mutual labels:  packagist
artisan-gui
Simple but yet powerful library for running almost all artisan commands.
Stars: ✭ 334 (+1092.86%)
Mutual labels:  packagist
mirror-proxy
Jenkins Update Center mirror proxy
Stars: ✭ 15 (-46.43%)
Mutual labels:  mirror

Build Status Docker pulls Minimum PHP Version FOSSA Status Software License Mentioned in Awesome composer

Docker for Packagist Mirror

This project allows you to easily create and update a mirror of the packagist having as dependency only the docker. It is possible to completely customize the mirror only by using environment variable and thereby create an institutional mirror or for a particular country without any problem.

We use webysther/composer-debian as alternative to official composer on docker hub because the alpine version has issues with I/O.

Usage

Schedule in case of restart or another problem, the first execution create a mirror:

* * * * * root docker run --name mirror --rm -v /var/www/html:/public -e MAINTAINER_REPO='mymirror.com' webysther/packagist-mirror

Synchronized continuously:

*    *  * * * root docker run --name mirror --rm --device-read-bps /dev/xvda:600kb --device-write-bps /dev/xvda:600kb -e SLEEP=0 -v /var/www/html:/public webysther/packagist-mirror

Sample used inside packagist.com.br (update docker composer every day):

# Every minute
*    *  * * * root docker run --name mirror --rm --device-read-bps /dev/xvda:600kb --device-write-bps /dev/xvda:600kb -e SLEEP=0 -v /var/www/html:/public webysther/packagist-mirror

# Every 1:00 AM
0    1  * * * root docker pull webysther/packagist-mirror 

# Every 2:30 AM
30   2  * * * root service docker restart

You can add more mirrors with additional URL's separated by comma:

-e DATA_MIRROR='https://packagist.jp,https://packagist.com.br'

Main mirror is used to get providers and fallback in case of error on data mirror, you can also change them:

-e MAIN_MIRROR='https://packagist.com.br'

You also can change parallel connections for every mirror:

-e MAX_CONNECTIONS=10

All enviroment options stay on .env file.

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].