News for hackers. Stuff that matters.
Re:Docker was unavailable in Ubuntu/Debian repos by tsuresh on Thursday June 02, 2016 @11:08AM (#11823058)
From the GitHub issue thread, I see a lot of people being angry for their production deployments failing. If you directly point to an external repo in your production environment deployments, you better not be surprised when it goes down. Because shit always happens.

If you want your deployments to be independent of the outside world, design them that way!

Re:Docker was unavailable in Ubuntu/Debian repos by eloycoto on Thursday June 02, 2016 @11:22AM (#11823178)
I can't fully understand why people complain about that TBH. Free service and shit happens.

If you're running in production without having a APT mirror[0] in your local network something is wrong with you, no with docker apt repos.

[0] https://apt-mirror.github.io/

Re:Docker was unavailable in Ubuntu/Debian repos by Ghostium on Thursday June 02, 2016 @11:27AM (#11823227)
It's the same solution for the npm left-pad problem. In my opinion every type of package repository should be mirrored & cached for production :)
Re:Docker was unavailable in Ubuntu/Debian repos by gbraad on Thursday June 02, 2016 @11:57AM (#11823551)
Same thought here; uncached (re)installs feel like bad practice. Bad disaster planning... But also prone to inconsistencies in your software deployments.
Re:Docker was unavailable in Ubuntu/Debian repos by facorreia on Thursday June 02, 2016 @12:53PM (#11824055)
Or aptly or artifactory.
Re:Docker was unavailable in Ubuntu/Debian repos by SteveNuts on Thursday June 02, 2016 @03:14PM (#11825238)
Artifactory has been worth every penny
Re:Docker was unavailable in Ubuntu/Debian repos by __jal on Thursday June 02, 2016 @02:19PM (#11824825)
Seriously. My favorites were the complainers sagely tutting about Docker's "single points of failure", and in the same breath complaining about Docker causing pain for the complainers' infrastructure.

Physician, heal thyself.

Re:Docker was unavailable in Ubuntu/Debian repos by djb_hackernews on Thursday June 02, 2016 @11:37AM (#11823326)
The irony here is this is one of the problems docker solves, ie packaging your dependencies with your application ahead of time.
Re:Docker was unavailable in Ubuntu/Debian repos by fpoling on Thursday June 02, 2016 @12:46PM (#11823986)
Yep, even for small personal projects I deploy docker apps via saving an image repository and transferring it to the production server from my laptop. It is so easy to do so I just cannot see justifications for not doing that especially in any kind of commercial deployment.
Re:Docker was unavailable in Ubuntu/Debian repos by karterk on Thursday June 02, 2016 @11:16AM (#11823126)
Maybe this is the norm in big enterprises, but I have not actually come across any company which hosts a local package repository for commonly available packages.
Re:Docker was unavailable in Ubuntu/Debian repos by NikolaNovak on Thursday June 02, 2016 @11:37AM (#11823330)
In big enterprises, core production infrastructure frequently has NO access to internet, ever.

Most places I've ever worked in will have local repositories, procedures and timelines for anything from Microsoft and OS updates, to development stacks and libraries.

Neither workstations nor servers get updated directly from external/vendor/open repositories - it is all managed in-house.

Slower, yes; more work, yes; but that's exactly the type of issue it's meant to prevent :)

Re:Docker was unavailable in Ubuntu/Debian repos by LTheobald on Thursday June 02, 2016 @11:19AM (#11823155)
Really? We certainly do here. Linux packages are mirrored. Programming dependencies are mirrored via tools like Nexus or Artifactory.

Like tsuresh said - stuff happens. What if you internet connection went down for a long period of time. You couldn't continue working. It takes very little to setup, gives you fall over but also makes installing dependencies sooo much faster.

Re:Docker was unavailable in Ubuntu/Debian repos by TillE on Thursday June 02, 2016 @11:25AM (#11823206)
You don't need a seamless, robust process for dealing with the occasional remote failure (especially when there are mirrors), but you can for example save snapshots of dependencies.

You should be able to do something in an emergency, even if it requires manual intervention. If you can only shrug and wait, that's bad.

Re:Docker was unavailable in Ubuntu/Debian repos by toomuchtodo on Thursday June 02, 2016 @12:07PM (#11823648)
> If you can only shrug and wait, that's bad.

Welcome to cloud computing!

Re:Docker was unavailable in Ubuntu/Debian repos by khedoros on Thursday June 02, 2016 @01:47PM (#11824515)
At work, we've got our prereqs stored in a combination of Artifactory and Perforce. Even for my own personal projects, I'll fetch packages from the Internet when I'm setting up my dev environment, but actually doing a build only uses packages that I've got locally.

It's a little mind-boggling to me that anyone would rely on the constant availability of a free external service that's integral to putting their product together. I handle timestamps for codesigning through free public sites, but I've also got a list of 8 different timestamp servers to use, and switch between them if there's a failure.

Re:Docker was unavailable in Ubuntu/Debian repos by dozzie on Thursday June 02, 2016 @12:35PM (#11823894)
You don't see well written, solidly thought out code to be the norm, either, for pretty much the same reason. It takes experience and guided thought to get to this point, and seasoned sysadmins (who have this worked out) aren't exactly the crowd considered to be sexy nowadays.
Re:Docker was unavailable in Ubuntu/Debian repos by thwarted on Thursday June 02, 2016 @02:52PM (#11825077)
Infrastructure that works has very little drama. Without drama, you're not in anyone's sphere of attention, and being outside that, there's no reason to be sexy.
Re:Docker was unavailable in Ubuntu/Debian repos by dozzie on Thursday June 02, 2016 @04:09PM (#11825619)
I agree. I'm a sysadmin myself, and the best congratulations I've ever had was after heavy rewrite of a firewall script (old one was a mix of three different styles, unmanagable mess after several years of work), when my colleague asked me when I'm going to deploy the new firewall, two or three weeks after it actually went into production. It was so smooth that nobody noticed.
Re:Docker was unavailable in Ubuntu/Debian repos by tene on Thursday June 02, 2016 @06:51PM (#11826781)
Everywhere I've worked, mostly very small companies for the past decade, has kept local mirrors of critical infrastructure we depend on, specifically distro repositories, CPAN, etc. It's just a sane best practice. It really doesn't take all that much work to run apt-mirror or reprepro.
Re:Docker was unavailable in Ubuntu/Debian repos by twblalock on Thursday June 02, 2016 @05:35PM (#11826266)
My somewhat small company does this for Debian packages, maven artifacts, etc. We use Artifactory for all of it.
Re:Docker was unavailable in Ubuntu/Debian repos by draw_down on Thursday June 02, 2016 @11:23AM (#11823189)
They do it where I work, because our ops and dev teams like it when deploys don't randomly break.
Re:Docker was unavailable in Ubuntu/Debian repos by toomuchtodo on Thursday June 02, 2016 @11:39AM (#11823349)
Devops here for a startup: We run our own repo for critical packages specifically to ensure AMI baking and deploys do not break when a package isn't available for whatever reason (and we pin to the package version).
Re:Docker was unavailable in Ubuntu/Debian repos by agentgt on Thursday June 02, 2016 @12:58PM (#11824102)
After reading the bug report I am surprised so many people are using a remote package repositories for their build machines builds... then again I'm not too surprised I guess.

I'm not that familiar with Docker but I am of package/dep management (from deb, jars, npm, eggs etc) and you most certainly want to use a mirrored package repository (jfrog, sonatype, or whatever) for this reason and many more other reasons (bandwidth, security, control, etc).

So if you did have issues with the outage I would look into one of those mirroring tools. At the minimum it will speed up your builds.

Re:Docker was unavailable in Ubuntu/Debian repos by therealmarv on Thursday June 02, 2016 @02:28PM (#11824889)
I wonder how this all works if you have a really small, non critical systems and you are using SaaS und PaaS infrastructure (hello cloudcomputing, not doing stuff in house) like Travis CI where you are not in control of their repositories. This kind of services (like SaaS CI) are not new but making life a lot easier than doing your own CI (looking at you Jenkins). Not everybody wants to replicate whole repos for everything. Also some people (like me) want to spread open source software systems (which will not install themself on the client side if one component fails on the Internet) and not mission critical single point services.
Re:Docker was unavailable in Ubuntu/Debian repos by Sphax on Thursday June 02, 2016 @11:23AM (#11823191)
Exactly. Some comments on this issue are making me irrationally mad.
Re:Docker was unavailable in Ubuntu/Debian repos by kordless on Thursday June 02, 2016 @12:28PM (#11823836)
Truth here, except running your own repos to add immutability shouldn't be something you have to do for infrastructure. Aptitude, and the package manager ilk like it, need to die.
Re:Docker was unavailable in Ubuntu/Debian repos by forgottenpass on Thursday June 02, 2016 @12:43PM (#11823960)
You don't have to run your own repos for immutability. You just have to use repositories that say up front what will - or will not - change, and then don't do anything on top of them that expects something different from what that particular repo provides.

The question is why would anyone would expect immutability after pointing their package tools at a mutable repository?