Create an Alpine Linux container from scratch [message #51898] |
Sat, 21 February 2015 08:01 |
XavM
Messages: 5 Registered: April 2013 Location: France
|
Junior Member |
|
|
Hello,
If any one find interest, I just wrote a small tutorial on how to create an Alpine Linux container from scratch :
xmeblog.blogspot.fr/2015/02/openvz-create-alpine-linux-conta iner.html
The template is 2.8MB in its tar.gz format and provides a 6MB fully working container with sshd
Alpine Linux has access to a surprisingly rich package repository where you will find nginx, httpd, nodejs, postgres, mysql, memcached, dnsmasq, collectd, monit, ansible ... and a lot more : forum.alpinelinux.org/packages
It can be especially useful to have a small base os-template to create a fleet of barebones containers exposing dedicated services (see blog post for a few examples why)
Golang (1.3) dev package (not included in this template) allows you to compile your favorite Go binaries (We have deployed our consul (v0.5) server cluster using this template : consul.io/ )
Feel free to use, comment, share and correct as necessary
My secret wishes :
- @_openvz_ would make an official Alpine linux os template
- @_openvz_ would include some kind of os template "layering" capability (in a ploop-like way ??) allowing containers creation based on a base template + n more additional layers on top of it
I am definitely sure its time for OpenVZ to get back some credits (hypes ??) it deserves when compared to @Docker ;) !!
Regards,
Xavier
XavM
[Updated on: Sat, 21 February 2015 08:55] Report message to a moderator
|
|
|
|