-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Tweak golang image #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak golang image #195
Conversation
@friism Good catch, downloading the ZIP instead of the MSI results in much smaller Docker images (I've done some tests installing MongoDB in different ways some months ago). A fast and easy way to download files really helps users to create Dockerfiles like on Linux. I prefer the If we improve the golang Docker image it should also contain some developer tools. With only golang inside it is rather useless as you can't install dependencies or build more complex applications in it. A The official golang 1.6 Dockerfile for Linux has the following tools installed on top of golang: FROM buildpack-deps:jessie-scm to install git, ssh client, svn, bzr, mercurial |
Ps is dreadfully slow at downloading. See dockerfile.windows for a MUCH faster way. |
That uses .net webclient too. It's a bad dependency though, because the On Monday, April 11, 2016, John Howard notifications@github.com wrote:
http://friism.com/ |
Michael is also using WebClient in this PR, thanks for the workaround. I will get around to updating the other samples. From dockerfile.windows
Would any of you have a solution that works with Nano Server. The ADD instruction will bring content down, but looking for a scripted way to install and cleanup. Invoke-Command does not work and the WebClient class is not present. I've found an HttpClient class but am having issues downloading files with it. |
@neilpeterson I'm continuing this work here: docker-library/golang#92 |
Fix the use of undefined $dockerData
I've tried to tweak this image to be more like the official go image. It'd be great to figure out how to fold it into the Docker library image repo (and that's for me/Docker to figure out).
The dependency on .NET is very bad, but I can't get performant downloads any other way. If fast, this would be ideal:
Invoke-WebRequest -UseBasicParsing -Method Get -Uri https://golang.org/dl/go1.6.windows-amd64.zip | Expand-Archive -DestinationPath c:\\
Bits-Transfer would be ok too, but moby/moby#21922