facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.18k stars 2.99k forks source link

Where can I find a documentation about HHVM packages mirroring? #2401

Closed xaionaro closed 10 years ago

xaionaro commented 10 years ago

I want to mirror HHVM packages on my server "ftp.ru.debian.org". Where can I find the documentation about mirroring HHVM packages?

sandeepone commented 10 years ago

Check https://github.com/hhvm/packaging

xaionaro commented 10 years ago

@sandeepone, so you suggest to rebuild packages instead of syncing it?

Also it requires root:

sudo ln -sf /usr/lib/hhvm/libglog.so.0 /usr/lib/hhvm/libglog.so

I don't like it :(

sandeepone commented 10 years ago

I'm don't use debian. If you want HHVM rpm package for centos, I can help you. http://yum.gleez.com/6/x86_64/repoview/hhvm.html

sudo for linking the libraries from custom path.

xaionaro commented 10 years ago

Again, I don't want to prepare packages. I just want to sync them to my mirror (for example from dl.hhvm.com).

My mirror doesn't have enough CPU to prepare packages on it.

ptarjan commented 10 years ago

Thanks for wanting to mirror for us. All our official packages are on dl.hhvm.com so if you want to mirror that is the definitive source. Let me know if I have to setup something special on that repo to allow mirroring.

xaionaro commented 10 years ago

@ptarjan,

I just tried to find any documentation about how to mirror HHVM packages. Anyway it doesn't matters if you can help me :)

There're few problems. I'd prefer to use "rsync" for the syncing, but:

Also there's a one more question. Can we ask to redirect users from Russia on our mirror? It's because dl.hhvm.com is quite slow from Russian Federation.

d[10:43:28] [xaionaro@imperium ~]$ rsync rsync://dl.hhvm.com
---------------------------------------------------------------------------
                      R S Y N C . O S U O S L . O R G 
                          Oregon State University
                              Open Source Lab

       Unauthorized use is prohibited - violators will be prosecuted
---------------------------------------------------------------------------

                For more information about the OSL visit:
                    http://osuosl.org/services/hosting

          This host is the home to the primary archives of several
           projects.  We would prefer that only primary/secondary
                    mirrors use this service.  Thanks!

---------------------------------------------------------------------------

archlinux           Arch Linux ftp module
arklinux            Ark Linux (updated hourly)
backports           Backports.org mirror
blfs                Beyond Linux From Scratch
clfs                Cross-Compiled Linux From Scratch
cygwin              cygwin mirror (updated daily)
caos                cAos mirror (updated daily)
centos              centos mirror (updated daily)
cfengine            cfengine mirror (updated twice daily)
cpan                cpan mirror (updated daily)
debian              Debian Mirror
debian-cdimage      Debian CD Image Mirror (updated daily)
drupal              Drupal mirror
eclipse             Eclipse Mirror (entire tree, no php files)
fedora              Fedora Mirror (the not-quite-fedora-enchilada)
fedora-burrito      What is left after chopping down fedora-enchilada (same as our fedora module)
fedora-epel         Fedora EPEL Repository
fedora-fajita       The fedora-enchilada leftovers (same as our fedora module)
fedora-mojito       The drink to have with your fedora fajita (or burrito, if you dare)
funtoo              Funtoo
gentoo              Gentoo.org - subscribe to gentoo-mirrors@gentoo.org for access (updated hourly)
gsb                 Gnome Slack Build
gnome               Gnome
haiku               Haiku-os.org
hudson              Hudson - Extensible continuous integration server
jenkins             Jenkins - Extensible continuous integration server
knoppix             Knoppix
knoppix-dvd         Knoppix DVD's
lfs                 Linux From Scratch
lfs-livecd          Linux From Scratch LiveCDs
mariadb             MariaDB
musicbrainz         MusicBrainz
nslu2               NSLU2-Linux
meego               MeeGo
mozdev              MozDev archives (updated via push)
netwinder           Netwinder ftp tree
opensuse-hotstuff-160gb     openSUSE
pculture.org        pculture.org video client
pcf                 Participatory Culture
slackware           Slackware Linux Mirror (updated by push)
slackware-iso       Slackware-ISO Mirror (updated by push)
tdf                 The Document Foundation
trk                 Trinity Rescue Kit
ubuntu              Ubuntu Main apt tree
ubuntu-releases     Ubuntu Releases
vectorlinux         VectorLinux
videolan            VideoLAN
xbmc                XBMC
xiph                xiph.org archives
ptarjan commented 10 years ago

@xaionaro I know almost nothing about this and don't want to take on any architectural complication for routing traffic. We will be in default debian distros in a few months, so I'd rather work on that route instead.

If you can setup something yourself, then feel free, but the HHVM team isn't going to put in any effort into mirrors for dl.hhvm.com. Sorry.

xaionaro commented 10 years ago

@ptarjan,

I see. I'll contact with dl.hhvm.com administration. I hope they will prepare a separate rsync module for hhvm syncing. About "complication for routing traffic". You can just public somewhere a mirror list and users will choose the mirror themselves.

ptarjan commented 10 years ago

@xaionaro feel free to add a wiki page

xaionaro commented 10 years ago

Administrators of dl.hhvm.com prepared a rsync module for HHVM syncing. Problem closed.

ptarjan commented 10 years ago

Thanks for setting this up @xaionaro. I create https://github.com/facebook/hhvm/wiki/Mirror for you and moved your repo in there. Will that work?

xaionaro commented 10 years ago

Ok. I think that will be good enough. :)