News for hackers. Stuff that matters.
Re:Docker Hub Official Repos: Announcing Language Stacks by pandog on Thursday September 25, 2014 @05:56AM (#8366403)
Maybe I'm missing something here but I don't see this as being particularly useful?

It's a nice quick way to get an application running in Docker but realistically would you want to be depending upon these images in production?

The power I see in Docker is the ability to create portable images that contain everything my application needs. I don't want to depend upon Docker (the company) to figure out what these images should look like.

Am I looking at this the wrong way?

Re:Docker Hub Official Repos: Announcing Language Stacks by wernerb on Thursday September 25, 2014 @07:25AM (#8366586)
I understand where you're coming from. At first glance I thought it would be the return of the dreaded virtual appliance giving people no clue on how developer X got to end result Y.

However, this is not that. Docker simply gives more emphasis to officially maintained docker images of popular projects, all of which have Dockerfiles available for your inspection!

Re:Docker Hub Official Repos: Announcing Language Stacks by danielbln on Thursday September 25, 2014 @06:14AM (#8366433)
If the Dockerfiles were available, I would feel better about it. Just glancing around I couldn't find the stacks Dockerfiles, so not sure those are available.
Re:Docker Hub Official Repos: Announcing Language Stacks by pandog on Thursday September 25, 2014 @06:33AM (#8366467)
I think they're here: https://github.com/docker-library
Re:Docker Hub Official Repos: Announcing Language Stacks by cpuguy83 on Thursday September 25, 2014 @09:43AM (#8367044)
There are links to all the dockerfiles on the repo pages on Dockerhub.
Re:Docker Hub Official Repos: Announcing Language Stacks by ae0000 on Wednesday September 24, 2014 @07:02PM (#8364652)
Does anyone know why debian was chosen as the source for these repos? I thought they were defaulting to ubuntu.

ie. https://github.com/docker-library/golang/blob/master/1.3/Doc...

Re:Docker Hub Official Repos: Announcing Language Stacks by tianon on Wednesday September 24, 2014 @07:16PM (#8364693)
This question was asked on https://github.com/docker-library/golang/issues/11#issuecomm... too, but the main reason is that the "debian" base images are tightly controlled and kept really minimal, so it's easy to make the new images as minimal as they can be too. The Ubuntu images are also great, but they include more stuff as part of keeping a consistent experience, so they don't have the same focus on minimalism that the Debian images can.
Re:Docker Hub Official Repos: Announcing Language Stacks by shykes on Wednesday September 24, 2014 @07:59PM (#8364823)
Note that the image maintainers (starting with tianon above) reserve the right to change the base distro they use for the images. So they can truly use the best tool for the job, now and in the future.
Re:Docker Hub Official Repos: Announcing Language Stacks by prudhvis on Wednesday September 24, 2014 @09:36PM (#8365098)
Changing the distro underneath would break all other Dockerfiles that assume they are running on a certain distro. How do we have to deal with cases when the distro is switched from debian to centos for example?.
Re:Docker Hub Official Repos: Announcing Language Stacks by IanCal on Thursday September 25, 2014 @09:40AM (#8367029)
If you don't want things to get broken further down the line, you should use tags. It's the same with any dependency.
Re:Docker Hub Official Repos: Announcing Language Stacks by voltagex_ on Wednesday September 24, 2014 @10:27PM (#8365247)
Taking that a step further - why not a busybox image to get even smaller?
Re:Docker Hub Official Repos: Announcing Language Stacks by 0x006A on Thursday September 25, 2014 @04:31AM (#8366200)
How would you install the build dependencies with busybox? Go requires some packages to build, from the Dockerfile:

apt-get install -y ca-certificates curl gcc libc6-dev bzr git mercurial

Re:Docker Hub Official Repos: Announcing Language Stacks by zimbatm on Thursday September 25, 2014 @05:46AM (#8366380)
It's possible to install another package manager like opkg. See https://github.com/progrium/busybox
Re:Docker Hub Official Repos: Announcing Language Stacks by 0x006A on Thursday September 25, 2014 @06:19AM (#8366442)
right, that would be an option, if opkg had packages for python mercurial or bzr. (those are needed for go get to work). Don't see those in http://downloads.openwrt.org/snapshots/trunk/x86_64/packages...
Re:Docker Hub Official Repos: Announcing Language Stacks by zimbatm on Thursday September 25, 2014 @11:57AM (#8367802)
Another solution is to build your go executable in a different container and import it into a busybox container. That changes the layering from:

    debian
    add go, bzr, mercurial, python, ...
    build executable
to:

    busybox
    executable
That reduces the amount of data that needs to be downloaded on new boxes by a factor of ten or so.
Re:Docker Hub Official Repos: Announcing Language Stacks by voltagex_ on Tuesday September 30, 2014 @01:30AM (#8386888)
Yeah, that looks good - I'm in Australia so anything that reduces the amount I need to download is excellent.
Re:Docker Hub Official Repos: Announcing Language Stacks by rayalez on Thursday September 25, 2014 @04:16AM (#8366160)
I'm very happy to see Hy language among the official repos! I think more people should know about it.
Re:Docker Hub Official Repos: Announcing Language Stacks by Loic on Thursday September 25, 2014 @04:59AM (#8366260)
For people not aware, "Hy transforms its Lisp code into the Python Abstract Syntax Tree"[0].

[0]: http://hy.readthedocs.org/en/latest/index.html

Re:Docker Hub Official Repos: Announcing Language Stacks by agumonkey on Thursday September 25, 2014 @04:56AM (#8366249)
This is quite huge. A transpiled LISP in a trendy mainstream project ... I need to sit.

ps: while they're at it, there's also http://scriptor.github.io/pharen/ (php)

Re:Docker Hub Official Repos: Announcing Language Stacks by skrebbel on Thursday September 25, 2014 @10:14AM (#8367240)
Can someone explain to me what the fuss is about? I mean, e.g. the Java 7 dockerfile is 3 lines. Why is it better for me to FROM these images instead of copying those three lines into my own dockerfile?
Re:Docker Hub Official Repos: Announcing Language Stacks by peterwwillis on Thursday September 25, 2014 @10:50AM (#8367467)
Well from a practical sense it's just making it more modular for you to mix and match without duplicating configuration. But the fuss is about PR. If this were Gentoo or something there'd just be a big directory of ebuilds and you'd just use them as you needed. But an announcement like this always makes it to the front page of HN, and then other sites, and they get more eyeballs on their site. So it's half useful, half business-as-usual.
Re:Docker Hub Official Repos: Announcing Language Stacks by farslan on Thursday September 25, 2014 @09:18AM (#8366914)
Pity they choose "Golang" instead of "Go" for their default Go image. It's called "Go". And they built Docker with Go.
Re:Docker Hub Official Repos: Announcing Language Stacks by levosmetalo on Thursday September 25, 2014 @10:08AM (#8367194)
Pity Google choose "Go" instead of "Golang" for their programming language. There were already another "Go!". And they built it from scratch so they could choose whatever name instead of a common English word.
Re:Docker Hub Official Repos: Announcing Language Stacks by jamespacileo on Thursday September 25, 2014 @09:55AM (#8367124)
Go isn't very search friendly, Golang is A LOT better for identifying and searching anything related to it.
Re:Docker Hub Official Repos: Announcing Language Stacks by snupples on Thursday September 25, 2014 @01:18PM (#8368285)
Yes, and silly Google for making the URL for Go "golang.org". Someone should let them know it's called Go, not golang!

This is like the new "It's GNU/Linux - NOT LINUX!" Except with less validity. It's totally interchangeable in common usage, and in fact much more explicit to use the term "golang".

Re:Docker Hub Official Repos: Announcing Language Stacks by TeMPOraL on Thursday September 25, 2014 @10:45AM (#8367432)
> And they built Docker with Go.

That's why they know "Go" is very often called "Golang", for search-engine-related reasons.