Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Thin image #7

Closed
md5 opened this issue Mar 27, 2015 · 4 comments
Closed

Thin image #7

md5 opened this issue Mar 27, 2015 · 4 comments

Comments

@md5
Copy link

md5 commented Mar 27, 2015

It would be cool if there were a thinner container-exporter image. The go:onbuild base is currently 514MB and the layer that does the go-wrapper download is 72MB. The layer that does the go install itself is only 16MB, so I suspect a resulting thin image could be around that size.

The swarm image is a good example of this pattern: https://github.com/docker/swarm-library-image/blob/master/Dockerfile

I've also created a couple of them myself: https://github.com/synctree/docker-logstash-forwarder https://github.com/md5/docker-gen/tree/static-build-image

@discordianfish
Copy link
Contributor

Hi @md5,

I simply have no build pipeline for that available so far. I hoped for some Docker native solution to this problem as proposed here:

Although this discussion is going on for over a year, nothing really materialized yet. That being said, I've planned to build small images for some go project we built, but didn't get to it yet. So will keep this open until we have a solution.

@md5
Copy link
Author

md5 commented Apr 6, 2015

Sounds good. Thanks for the response. I've been patiently waiting for moby/moby#7115 or something like it as well.

@discordianfish
Copy link
Contributor

Hi @md5,

I switched to alpine linux for the base image and run everything in one step than cleans up afterwards. This brings down the image size to 27.01MB MB which should be good for now :)

@md5
Copy link
Author

md5 commented May 7, 2015

Thanks @discordianfish 👍

amolenaar pushed a commit to wehkamp/docker-prometheus-container-exporter that referenced this issue Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants