6 ms·
The package ecosystem is the biggest challenge for Alpine. It's just not there and there's only so much you can do yourself. You need to have enough critical ma
by kylequest 11y ago
The package ecosystem is the biggest challenge for Alpine. It's just not there and there's only so much you can do yourself. You need to have enough critical mass before the majority of the 3rd party providers begin to release packages for Alpine.
There's a way to have small Docker images using the standard distros like Ubuntu where you get to use your favorite packages. DockerSlim [1] was created for this. It collects the artifacts your are actually using in the container throwing everything else away...
Here are a few numbers to give you an idea (using on Ubuntu 14 base image):
node: 431MB -> 14MB
python: 433MB -> 15MB
ruby: 406 MB -> 14MB
java: 743MB -> 100MB
It's a work in progress, so there might be corner cases where it's less than ideal. It's not tested well enough with "fat" images. Pull Requests are greatly appreciated :-)
You also get auto-generated Seccomp (already usable) and AppArmor (WIP) profiles, so you don't have to create them manually.
[1] http://dockersl.im http://dockersl.im
- sandGorgon 11y agoIs this your project ? DockerSlim is awesome!! You should have posted this independently - there you go https://news.ycombinator.com/item?id=11046797 https://news.ycombinator.com/item?id=11046797 could you put up some precreated docker images that we can pull and test out ? That should really be the quickstart.
- kylequest 11y agoYes, I'm one of the authors. If you want to contribute too it'll be awesome and it'll be greatly appreciated! The quoted numbers are based on the set of sample apps you can find in the repository. Take a look in sample/apps. You'll see the code and the Dockerfiles that go along with them. I haven't thought about publishing the images. Thanks for the idea!