News for hackers. Stuff that matters.
Re:GitHub had connectivity problems by marinintim on Tuesday August 25, 2015 @07:13AM (#10115628)
All these ideas like "let's fetch our deps directly from github" sound good until github is not down.
Re:GitHub had connectivity problems by ilghiro on Tuesday August 25, 2015 @07:20AM (#10115661)
Yeh it's definitely preferable to have one of the two developers your small startup can probably afford spending a good portion of their time rolling out, securing and maintaining your own infrastructure
Re:GitHub had connectivity problems by bad_user on Tuesday August 25, 2015 @08:06AM (#10115830)
GitHub is not meant for distributing dependencies. Maven Central on the other hand is, the difference being that it is mirrored and if repo1.maven.org goes down, it's not a big deal and your project can still be built and deployed.
Re:GitHub had connectivity problems by wereHamster on Tuesday August 25, 2015 @08:38AM (#10115987)
.. until they become a target of a DDoS.

Also, if GitHub is down you can still fetch your dependencies from somewhere else.

Re:GitHub had connectivity problems by JumpJumpJump on Tuesday August 25, 2015 @09:03AM (#10116116)
You have not understood the concept of 'mirrored'.
Re:GitHub had connectivity problems by chopman on Tuesday August 25, 2015 @09:51AM (#10116432)
Well I guess all mirrors could get targeted. Also, what stops github from getting mirrors themselves?
Re:GitHub had connectivity problems by biggestbob on Tuesday August 25, 2015 @07:32AM (#10115711)
Yeh cos those are two only two options available. Good thinking.
Re:GitHub had connectivity problems by satanrepents on Tuesday August 25, 2015 @09:54AM (#10116452)
An internal GitLab install isn't that time consuming to maintain. Also: dat false dichotomy.
Re:GitHub had connectivity problems by modarts on Tuesday August 25, 2015 @12:46PM (#10117784)
False dilemma much? Private versions of most dependency repos exist (npm, maven, etc)
Re:GitHub had connectivity problems by Retr0spectrum on Tuesday August 25, 2015 @07:21AM (#10115664)
You have to fetch them from somewhere. If you are fetching deps from multiple sources, there is a much higher chance of at least one source being down.
Re:GitHub had connectivity problems by raverbashing on Tuesday August 25, 2015 @07:28AM (#10115692)
You can fetch them. Once, then cache them
Re:GitHub had connectivity problems by OJFord on Tuesday August 25, 2015 @08:24AM (#10115919)
As well you could if fetching from Github?
Re:GitHub had connectivity problems by JustSomeNobody on Tuesday August 25, 2015 @10:32AM (#10116732)
Not being able to fetch one is just as bad as not being able to fetch all.
Re:GitHub had connectivity problems by Retr0spectrum on Tuesday August 25, 2015 @12:35PM (#10117698)
That was my point.
Re:GitHub had connectivity problems by Spiritus on Tuesday August 25, 2015 @07:22AM (#10115669)
That applies to an in-house solution as well.
Re:GitHub had connectivity problems by chinathrow on Tuesday August 25, 2015 @07:57AM (#10115792)
Inhouse DDoS seems less likely though, at least ;)
Re:GitHub had connectivity problems by Spiritus on Tuesday August 25, 2015 @08:53AM (#10116068)
Sure, but I didn't specifically mean DDoS attacks, more of the human error kind. People tend to be more trigger happy with changes when it's "only" an internal system.
Re:GitHub had connectivity problems by JustSomeNobody on Tuesday August 25, 2015 @09:51AM (#10116431)
This was a controversial/contentious statement during the last DDOS attack. I wonder if any minds have changed.
Re:GitHub had connectivity problems by bdcravens on Tuesday August 25, 2015 @11:50AM (#10117303)
I'd venture to say that more downtime occurs via local issues (Internet, hardware, virus) than Github.
Re:GitHub had connectivity problems by nadams on Tuesday August 25, 2015 @09:41AM (#10116361)
Or "let's move our entire business workflow to github!". Doh! This is why you should run indefero/srchub/gitlab or any of the other self hosted source code control apps.
Re:GitHub had connectivity problems by tericho on Tuesday August 25, 2015 @09:59AM (#10116480)
I would argue from personal experience there's almost the same (or higher) likelihood of internal sources going down for other reasons since most people's IT departments aren't as efficient as GitHub's.
Re:GitHub had connectivity problems by bdcravens on Tuesday August 25, 2015 @11:54AM (#10117340)
For most, the cost of setting up and maintaining those systems than they lose when Github is down.
Re:GitHub had connectivity problems by nadams on Tuesday August 25, 2015 @12:39PM (#10117722)
It all depends on your infrastructure.

I once worked in a group that used SVN for SCM, mediawiki for wiki and Trac for tickets. I voiced my opinion about that setup many times but management felt that was the most efficient way to work...

Products like indefero/srchub have all of that from a single interface and it's very easy to maintain. I don't know how easy gitlab is to install/maintain - perhaps sytse can pop in and go into detail about that. Assuming the system works the maintenance would be minimal.

Re:GitHub had connectivity problems by sytse on Tuesday August 25, 2015 @08:59PM (#10120407)
You called me :) Anyway, installing GitLab should take under 5 minutes on a fresh Ubuntu 14.04 server with https://about.gitlab.com/downloads/

And then you can set a daily nightly cron for: sudo apt-get update sudo apt-get install gitlab-ce

Don't forget to take snapshots of your server for backups.

Re:GitHub had connectivity problems by nadams on Tuesday August 25, 2015 @11:04PM (#10120809)
> And then you can set a daily nightly cron for: sudo apt-get update sudo apt-get install gitlab-ce

AHHHH!!!! Don't recommend doing that. Only those who are crazy do that. Imagine waking up in the morning and your SCM system is broken due to an update that was automatically applied - I wouldn't want a sysadmin (or developer) to see that before their first cup of coffee.

When you update - does it automatically apply migrations or other database upgrades that might be necessary?

Re:GitHub had connectivity problems by sytse on Wednesday August 26, 2015 @01:07AM (#10121165)
For the reason mentioned it is better to set the timing during the day (that is what we do). But if you upgrade automatically during the day you'll have a bit of downtime during the day.

By default the Omnibus packages will stop, run migrations, and start again, no matter how “big” or “small” the upgrade is. The behaviour can be changed by adding a /etc/gitlab/skip-auto-migrations file.

Obviously if you installation grows you can review the needed upgrades in advance and prevent downtime in most cases.