OpenVZ Forum


Home » General » Discussions » Create an Alpine Linux container from scratch (An os template that is 2.8MB in tar.gz format and provides a 6MB containers fully working container)
Create an Alpine Linux container from scratch [message #51898] Sat, 21 February 2015 08:01 Go to next message
XavM is currently offline  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

Re: Create an Alpine Linux container from scratch [message #51922 is a reply to message #51898] Mon, 16 March 2015 20:59 Go to previous message
zenny
Messages: 48
Registered: November 2006
Member
Hi Xavier,

Nice pointer.

It would be nice if you can share the alpine-3.1.2.tar.xz image with md5sum somewhere.

Also it would be interesting to learn abour how did you deploy the cluster with consul.io.

Thanks for sharing!

/z
Previous Topic: network issue
Next Topic: Container Portability
Goto Forum:
  


Current Time: Sun Nov 17 02:22:39 GMT 2024

Total time taken to generate the page: 0.04160 seconds