News for hackers. Stuff that matters.
Re:Guide to Writing Dockerfiles for Go Web-Apps by c2h5oh on Monday February 05, 2018 @02:49PM (#16311468)
I'll take bloat over having Github being up as a build dependency.
Re:Guide to Writing Dockerfiles for Go Web-Apps by dalore on Monday February 05, 2018 @03:41PM (#16311952)
Stick a cache on your build server. As long as your cache doesn't go down you can cache all the build dependencies. Then github is not a dependency anymore.
Re:Guide to Writing Dockerfiles for Go Web-Apps by merb on Monday February 05, 2018 @03:52PM (#16312070)
That does not work with Docker in Docker Builds with the copy from pattern. (Especially not when running on sbt...)
Re:Guide to Writing Dockerfiles for Go Web-Apps by dalore on Thursday February 08, 2018 @04:26AM (#16331105)
Yes it does. You can pass http_proxy as a build argument to docker and then it will use your cache when it builds docker images.
Re:Guide to Writing Dockerfiles for Go Web-Apps by bigdubs on Monday February 05, 2018 @02:52PM (#16311485)
Ditto decreased build speed because of internet downloads.
Re:Guide to Writing Dockerfiles for Go Web-Apps by PopsiclePete on Monday February 05, 2018 @04:59PM (#16312632)
How far can you take this thinking?

"My app will build even with Github down!"

"My app will build with Github down, and the entire internet down!"

"My app will build with Github down, and the internet down, and the US government being taken over by a foreign military power!"

"My app will build with Github down, the internet down, and the US government being taken over, and Europe a smoldering crater from the last alien invasion!"

At some point - just - nobody cares that your app can build. There's bigger problems.

To me, "Github is down and not coming up!" is one of those "oh my god we now have serious problems who cares about our app" moments.

Re:Guide to Writing Dockerfiles for Go Web-Apps by erik_seaberg on Tuesday February 06, 2018 @02:34AM (#16314915)
GitHub usually does a good job but we aren't paying for an SLA guarantee and major outages aren't unheard of. It's easy enough to make your build a deterministic function of the branch contents that I don't see much of a defense for not doing it.