[Sugar-devel] Introduction to the list

Michaël Ohayon mohayon75 at gmail.com
Fri May 1 12:23:38 EDT 2015


Thanks,

Docker is a great tool for booting up a container using LXC, you can refer
to it as a very light vm focused on a specific task.
You can script in minutes a way to boot a program by targetting a specific
OS from any GNU/Linux

For instance here is a Dockerfile to
- bootup an archlinux container
- upgrading packages
- copy a nginx conf file
- clone sugarizer repository
- expose nginx to port 80 on the host

[ohayon_m at ohayon-m-thinkpad /tmp]$ cat Dockerfile
FROM     base/archlinux:latest

RUN yes | pacman -Syy
RUN yes | pacman -S gcc nodejs openssh mongodb supervisor nginx git

COPY nginx.conf /etc/nginx/nginx.conf

RUN cd /opt; git clone https://github.com/llaske/sugarizer.git
RUN cd /opt/sugarizer/server; npm install
RUN mkdir /opt/sugarizer/db

EXPOSE 80

CMD ["/usr/bin/nginx"]
[ohayon_m at ohayon-m-thinkpad /tmp]$

Each modification of a container is handled like a git commit so you can
rollback at any time and launch specific snapshots.
It has a "cache system". It will bootup almost instantly after the
container is build.

I see it like a great tool to setup an env without having to script install
for every OS or if you don't want to install every lib/framework/etc in
your OS just for some testing.
It can be used in production and manage/scale with the new tools : Docker
Swarm and Docker Compose

Hope you'll find it usefull !



--
Michaël Ohayon
Manager de l'Innovation Cloud et Mobilité
Epitech Innovation Hub

2015-04-30 21:00 GMT+02:00 Gonzalo Odiard <godiard at sugarlabs.org>:

> Hi Michaël,
> Welcome!
>
> Few months later, I joined the Docker Paris Hackathon and had built
>> Sugarizer and Sugar containers (with graphical support for the Sugar one).
>>
>>
> Interesting. I don't know more from Docker than the sporadic news,
> could explain what can be done with the Sugar container?
>
>
>> My proposal is the SugarWeb Basic ActivitySet which is a writting of some
>> essential apps for the web version of Sugar.
>>
>>
> Here's the link to my GSOC proposal :
>> http://wiki.sugarlabs.org/go/Summer_of_Code/2015/mohayon.SugarWebBasicActivitySet
>>
>>
> Great. Keep connected :)
>
> Gonzalo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150501/c740146e/attachment.html>


More information about the Sugar-devel mailing list