Re: [Sugar-devel] Introduction to the list

2015-05-12 Thread Michaël Ohayon
It seems that the docker service is not running.

Does systemctl start docker gave you an error ?
 Le 12 mai 2015 02:55, Gonzalo Odiard godi...@sugarlabs.org a écrit :

 I have installed docker-io

 As root:
 # dnf install -y docker-io
 # systemctl start docker.service
 # systemctl enable docker.service

 Then, with my user I cloned the repo:
 git clone https://github.com/mikklfr/docker-sugar.git
 cd docker-sugar/
 sh run.sh

 FATA[] Post http:///var/run/docker.sock/v1.18/containers/create: dial
 unix /var/run/docker.sock: no such file or directory. Are you trying to
 connect to a TLS-enabled daemon without TLS?

 Any idea?

 Gonzalo

 On Mon, May 11, 2015 at 6:54 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 Yes, I'll add an option to enable using just a folder, it will be better
 that way.

 I'm running this under ArchLinux.

 The docker-io is the correct package, the another one is something not
 related at all. It's a dock applet systray program : https://fedorahosted
 .org/fpc/ticket/341
 Many distros are getting into this naming problem.

 So, you should remove docker and get docker-io.
 I think that the docker service will start automatically.

 This docker recipe should work across distributions as I didn't used
 specific items.

 I forgot to tell it but docker will only run on amd64 machines.

 The first time you'll run the script, docker will fetch the sugar image
 I've built. It's around 500mb, the source code used is in the Dockerfile
 located inside the github repo.
 It will be cached and the next launches will be almost instant.

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

 2015-05-11 23:44 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Maybe point to  directory where you have installed your activities?
  Or take it from a env variable.
 
  A few questions:
  What is your testing environment?
  I am looking at how to install docker in Fedora, and have different
 instructions
  depending on the version https://fedoraproject.org/wiki/Docker
  I am using F21, should I remove docker and install docker-io?
 
  What about other distributions? The docker recipe works across distros
  or we need a different recipe for everyone?
 
  Gonzalo
 
  Gonzalo
 
  On Mon, May 11, 2015 at 6:35 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:
 
  Hi !
 
  I've updated the script.
  You can now start a sugar environment and provide activities folders !
 
  https://github.com/mikklfr/docker-sugar
 
  I've got two activities folders which I want to test : 2048.activity
 and Valorar.activity.
 
  I can run sugar and provide those activities by running the script
 like this :
 
  $sh run.sh 2048.activity Valorar.activity
 
  Sugar shows up and activities are available in the list.
 
  You can edit the scripts from the host, they are synced with the
 docker container.
 
  Maybe you have some specific topics I could look into to get something
 useful for your needs ?
 
  --
  Michaël Ohayon
  Manager de l'Innovation Cloud et Mobilité
  Epitech Innovation Hub
 
  2015-05-11 18:26 GMT+02:00 Michaël Ohayon mohayo...@gmail.com:
 
  Hi,
 
  I've just setup something to run sugar with docker.
 
  It will work on GNU/Linux only with X11 and pulseaudio.
 
  I've published it on the docker registry and github.
 
  - https://github.com/mikklfr/docker-sugar
  - The docker image is mikkl/sugar
 
  It's kind of a poc for now.
  I'll setup a script to test an activity asap.
 
  If you want to test it :
 
  - Download and start docker service
  - Run the .sh script : https://github.com/mikklfr
 /docker-sugar/blob/master/run.sh
 
  I'll give updates :)
 
 
  --
  Michaël Ohayon
  Manager de l'Innovation Cloud et Mobilité
  Epitech Innovation Hub
 
  2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Nice.
  And you have a docker recipe to create a sugar development
 environment?
  Can be used in any operating system?
  I am asking because we are thinking in how make easier develop in
 different os,
  and also how distribute Sugar to users in other platforms.
 
  Gonzalo
 
  On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:
 
  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@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 

Re: [Sugar-devel] Introduction to the list

2015-05-12 Thread Michaël Ohayon
Yes, docker should work now :)

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

2015-05-12 13:37 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:



 On Tue, May 12, 2015 at 3:33 AM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 It seems that the docker service is not running.

 Does systemctl start docker gave you an error ?


 No.

 Searching in Google I found this:

 https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=1214104

 Then I tried:

 sudo sh run.sh

 and is downloading.

 Is the right solution?

 Gonzalo


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-12 Thread Gonzalo Odiard
Nice. Is working now.

This is very interesting. Started ok, and show a nice group of activities

A few comments/questions:

* Every time starts fresh (ask age/gender and select a color). There are
any way to
preserve a state?

* Docker is using the packages installed in Fedora, right? What Fedora
version?
I am trying to understand if we should use this as a distribution option,
as a testing option or if we can use it to develop/test.

* Where is all the stuff downloaded?

* Sugar crashed when I went to My Settings - My computer
(probably was trying to access some devices to get information about the
hardware)

Gonzalo

On Tue, May 12, 2015 at 8:41 AM, Michaël Ohayon mohayo...@gmail.com wrote:

 Yes, docker should work now :)

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

 2015-05-12 13:37 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:



 On Tue, May 12, 2015 at 3:33 AM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 It seems that the docker service is not running.

 Does systemctl start docker gave you an error ?


 No.

 Searching in Google I found this:

 https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=1214104

 Then I tried:

 sudo sh run.sh

 and is downloading.

 Is the right solution?

 Gonzalo





-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-12 Thread Michaël Ohayon
Great !

- I'll look onto preserving the state for the next versions

- Docker can run any docker container based on any linux.
Your os got his own docker version but you can run everything.
My Dockerfile specifies that the container should use fedora. So the guest
OS is fedora even if I use ArchLinux, Fedora or any other distro as host.

It's a great tool for develop/test. As you can see they are some
limitations for the distribution and some specific testing, like for the
hardware part but it's kinda stable.

The docker images are stored inside /usr/share/docker I think, don't delete
them manually or you'll get into troubles.

*How to remove things :*

Image : base Image of a system (like Fedora)
Container : running instance of an image

You can list images using : docker images -a
You can list containers using : docker ps -a
You can remove all containers using : docker rm `docker ps -aq`
You can remove all images using : docker rmi `docker images -aq`

You must kill and remove containers before images, so *to remove everything*
:
docker kill `docker ps -q`
docker rm `docker ps -aq`
docker rmi `docker images -aq`

The quote ` and not ' or  is important.

I'll setup a wiki page to keep this available !

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

2015-05-12 14:18 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Nice. Is working now.

 This is very interesting. Started ok, and show a nice group of activities

 A few comments/questions:

 * Every time starts fresh (ask age/gender and select a color). There are
 any way to
 preserve a state?

 * Docker is using the packages installed in Fedora, right? What Fedora
 version?
 I am trying to understand if we should use this as a distribution option,
 as a testing option or if we can use it to develop/test.

 * Where is all the stuff downloaded?

 * Sugar crashed when I went to My Settings - My computer
 (probably was trying to access some devices to get information about the
 hardware)

 Gonzalo

 On Tue, May 12, 2015 at 8:41 AM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 Yes, docker should work now :)

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

 2015-05-12 13:37 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:



 On Tue, May 12, 2015 at 3:33 AM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 It seems that the docker service is not running.

 Does systemctl start docker gave you an error ?


 No.

 Searching in Google I found this:

 https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=1214104

 Then I tried:

 sudo sh run.sh

 and is downloading.

 Is the right solution?

 Gonzalo





 --
 Gonzalo Odiard

 SugarLabs - Software for children learning

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-12 Thread Gonzalo Odiard


 I'll setup a wiki page to keep this available !


Thanks, good idea.

Gonzalo
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-11 Thread Michaël Ohayon
Yes, I'll add an option to enable using just a folder, it will be better
that way.

I'm running this under ArchLinux.

The docker-io is the correct package, the another one is something not
related at all. It's a dock applet systray program : https://fedorahosted
.org/fpc/ticket/341
Many distros are getting into this naming problem.

So, you should remove docker and get docker-io.
I think that the docker service will start automatically.

This docker recipe should work across distributions as I didn't used
specific items.

I forgot to tell it but docker will only run on amd64 machines.

The first time you'll run the script, docker will fetch the sugar image
I've built. It's around 500mb, the source code used is in the Dockerfile
located inside the github repo.
It will be cached and the next launches will be almost instant.

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

2015-05-11 23:44 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Maybe point to  directory where you have installed your activities?
 Or take it from a env variable.

 A few questions:
 What is your testing environment?
 I am looking at how to install docker in Fedora, and have different
instructions
 depending on the version https://fedoraproject.org/wiki/Docker
 I am using F21, should I remove docker and install docker-io?

 What about other distributions? The docker recipe works across distros
 or we need a different recipe for everyone?

 Gonzalo

 Gonzalo

 On Mon, May 11, 2015 at 6:35 PM, Michaël Ohayon mohayo...@gmail.com
wrote:

 Hi !

 I've updated the script.
 You can now start a sugar environment and provide activities folders !

 https://github.com/mikklfr/docker-sugar

 I've got two activities folders which I want to test : 2048.activity and
Valorar.activity.

 I can run sugar and provide those activities by running the script like
this :

 $sh run.sh 2048.activity Valorar.activity

 Sugar shows up and activities are available in the list.

 You can edit the scripts from the host, they are synced with the docker
container.

 Maybe you have some specific topics I could look into to get something
useful for your needs ?

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

 2015-05-11 18:26 GMT+02:00 Michaël Ohayon mohayo...@gmail.com:

 Hi,

 I've just setup something to run sugar with docker.

 It will work on GNU/Linux only with X11 and pulseaudio.

 I've published it on the docker registry and github.

 - https://github.com/mikklfr/docker-sugar
 - The docker image is mikkl/sugar

 It's kind of a poc for now.
 I'll setup a script to test an activity asap.

 If you want to test it :

 - Download and start docker service
 - Run the .sh script : https://github.com/mikklfr
/docker-sugar/blob/master/run.sh

 I'll give updates :)


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

 2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Nice.
 And you have a docker recipe to create a sugar development environment?
 Can be used in any operating system?
 I am asking because we are thinking in how make easier develop in
different os,
 and also how distribute Sugar to users in other platforms.

 Gonzalo

 On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
wrote:

 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@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@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 godi...@sugarlabs.org:

 Hi Michaël,
 Welcome!

 Few months later, I joined the Docker Paris Hackathon and had built
Sugarizer and Sugar containers (with 

Re: [Sugar-devel] Introduction to the list

2015-05-11 Thread Michaël Ohayon
Hi !

I've updated the script.
You can now start a sugar environment and provide activities folders !

https://github.com/mikklfr/docker-sugar

I've got two activities folders which I want to test : 2048.activity and
Valorar.activity.

I can run sugar and provide those activities by running the script like
this :

$sh run.sh 2048.activity Valorar.activity

Sugar shows up and activities are available in the list.

You can edit the scripts from the host, they are synced with the docker
container.

Maybe you have some specific topics I could look into to get something
useful for your needs ?

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

2015-05-11 18:26 GMT+02:00 Michaël Ohayon mohayo...@gmail.com:

 Hi,

 I've just setup something to run sugar with docker.

 It will work on GNU/Linux only with X11 and pulseaudio.

 I've published it on the docker registry and github.

 - https://github.com/mikklfr/docker-sugar
 - The docker image is mikkl/sugar

 It's kind of a poc for now.
 I'll setup a script to test an activity asap.

 If you want to test it :

 - Download and start docker service
 - Run the .sh script :
 https://github.com/mikklfr/docker-sugar/blob/master/run.sh

 I'll give updates :)


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

 2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Nice.
 And you have a docker recipe to create a sugar development environment?
 Can be used in any operating system?
 I am asking because we are thinking in how make easier develop in
 different os,
 and also how distribute Sugar to users in other platforms.

 Gonzalo

 On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 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@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@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 godi...@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





 --
 Gonzalo Odiard

 SugarLabs - Software for children learning



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-11 Thread Gonzalo Odiard
I have installed docker-io

As root:
# dnf install -y docker-io
# systemctl start docker.service
# systemctl enable docker.service

Then, with my user I cloned the repo:
git clone https://github.com/mikklfr/docker-sugar.git
cd docker-sugar/
sh run.sh

FATA[] Post http:///var/run/docker.sock/v1.18/containers/create: dial
unix /var/run/docker.sock: no such file or directory. Are you trying to
connect to a TLS-enabled daemon without TLS?

Any idea?

Gonzalo

On Mon, May 11, 2015 at 6:54 PM, Michaël Ohayon mohayo...@gmail.com wrote:

 Yes, I'll add an option to enable using just a folder, it will be better
 that way.

 I'm running this under ArchLinux.

 The docker-io is the correct package, the another one is something not
 related at all. It's a dock applet systray program : https://fedorahosted
 .org/fpc/ticket/341
 Many distros are getting into this naming problem.

 So, you should remove docker and get docker-io.
 I think that the docker service will start automatically.

 This docker recipe should work across distributions as I didn't used
 specific items.

 I forgot to tell it but docker will only run on amd64 machines.

 The first time you'll run the script, docker will fetch the sugar image
 I've built. It's around 500mb, the source code used is in the Dockerfile
 located inside the github repo.
 It will be cached and the next launches will be almost instant.

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

 2015-05-11 23:44 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Maybe point to  directory where you have installed your activities?
  Or take it from a env variable.
 
  A few questions:
  What is your testing environment?
  I am looking at how to install docker in Fedora, and have different
 instructions
  depending on the version https://fedoraproject.org/wiki/Docker
  I am using F21, should I remove docker and install docker-io?
 
  What about other distributions? The docker recipe works across distros
  or we need a different recipe for everyone?
 
  Gonzalo
 
  Gonzalo
 
  On Mon, May 11, 2015 at 6:35 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:
 
  Hi !
 
  I've updated the script.
  You can now start a sugar environment and provide activities folders !
 
  https://github.com/mikklfr/docker-sugar
 
  I've got two activities folders which I want to test : 2048.activity
 and Valorar.activity.
 
  I can run sugar and provide those activities by running the script like
 this :
 
  $sh run.sh 2048.activity Valorar.activity
 
  Sugar shows up and activities are available in the list.
 
  You can edit the scripts from the host, they are synced with the docker
 container.
 
  Maybe you have some specific topics I could look into to get something
 useful for your needs ?
 
  --
  Michaël Ohayon
  Manager de l'Innovation Cloud et Mobilité
  Epitech Innovation Hub
 
  2015-05-11 18:26 GMT+02:00 Michaël Ohayon mohayo...@gmail.com:
 
  Hi,
 
  I've just setup something to run sugar with docker.
 
  It will work on GNU/Linux only with X11 and pulseaudio.
 
  I've published it on the docker registry and github.
 
  - https://github.com/mikklfr/docker-sugar
  - The docker image is mikkl/sugar
 
  It's kind of a poc for now.
  I'll setup a script to test an activity asap.
 
  If you want to test it :
 
  - Download and start docker service
  - Run the .sh script : https://github.com/mikklfr
 /docker-sugar/blob/master/run.sh
 
  I'll give updates :)
 
 
  --
  Michaël Ohayon
  Manager de l'Innovation Cloud et Mobilité
  Epitech Innovation Hub
 
  2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Nice.
  And you have a docker recipe to create a sugar development
 environment?
  Can be used in any operating system?
  I am asking because we are thinking in how make easier develop in
 different os,
  and also how distribute Sugar to users in other platforms.
 
  Gonzalo
 
  On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:
 
  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@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@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.
  

Re: [Sugar-devel] Introduction to the list

2015-05-11 Thread Gonzalo Odiard
Maybe point to  directory where you have installed your activities?
Or take it from a env variable.

A few questions:
What is your testing environment?
I am looking at how to install docker in Fedora, and have different
instructions
depending on the version https://fedoraproject.org/wiki/Docker
I am using F21, should I remove docker and install docker-io?

What about other distributions? The docker recipe works across distros
or we need a different recipe for everyone?

Gonzalo

Gonzalo

On Mon, May 11, 2015 at 6:35 PM, Michaël Ohayon mohayo...@gmail.com wrote:

 Hi !

 I've updated the script.
 You can now start a sugar environment and provide activities folders !

 https://github.com/mikklfr/docker-sugar

 I've got two activities folders which I want to test : 2048.activity and
 Valorar.activity.

 I can run sugar and provide those activities by running the script like
 this :

 $sh run.sh 2048.activity Valorar.activity

 Sugar shows up and activities are available in the list.

 You can edit the scripts from the host, they are synced with the docker
 container.

 Maybe you have some specific topics I could look into to get something
 useful for your needs ?

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

 2015-05-11 18:26 GMT+02:00 Michaël Ohayon mohayo...@gmail.com:

 Hi,

 I've just setup something to run sugar with docker.

 It will work on GNU/Linux only with X11 and pulseaudio.

 I've published it on the docker registry and github.

 - https://github.com/mikklfr/docker-sugar
 - The docker image is mikkl/sugar

 It's kind of a poc for now.
 I'll setup a script to test an activity asap.

 If you want to test it :

 - Download and start docker service
 - Run the .sh script :
 https://github.com/mikklfr/docker-sugar/blob/master/run.sh

 I'll give updates :)


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

 2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Nice.
 And you have a docker recipe to create a sugar development environment?
 Can be used in any operating system?
 I am asking because we are thinking in how make easier develop in
 different os,
 and also how distribute Sugar to users in other platforms.

 Gonzalo

 On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 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@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@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 godi...@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





 --
 Gonzalo Odiard

 SugarLabs - Software for children learning






-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-11 Thread Michaël Ohayon
Hi,

I've just setup something to run sugar with docker.

It will work on GNU/Linux only with X11 and pulseaudio.

I've published it on the docker registry and github.

- https://github.com/mikklfr/docker-sugar
- The docker image is mikkl/sugar

It's kind of a poc for now.
I'll setup a script to test an activity asap.

If you want to test it :

- Download and start docker service
- Run the .sh script :
https://github.com/mikklfr/docker-sugar/blob/master/run.sh

I'll give updates :)


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

2015-05-03 6:17 GMT+02:00 Gonzalo Odiard godi...@sugarlabs.org:

 Nice.
 And you have a docker recipe to create a sugar development environment?
 Can be used in any operating system?
 I am asking because we are thinking in how make easier develop in
 different os,
 and also how distribute Sugar to users in other platforms.

 Gonzalo

 On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com
 wrote:

 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@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@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 godi...@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





 --
 Gonzalo Odiard

 SugarLabs - Software for children learning

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-02 Thread Gonzalo Odiard
Nice.
And you have a docker recipe to create a sugar development environment?
Can be used in any operating system?
I am asking because we are thinking in how make easier develop in different
os,
and also how distribute Sugar to users in other platforms.

Gonzalo

On Fri, May 1, 2015 at 1:23 PM, Michaël Ohayon mohayo...@gmail.com wrote:

 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@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@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 godi...@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





-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-05-01 Thread Michaël Ohayon
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@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@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 godi...@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

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Introduction to the list

2015-04-30 Thread Gonzalo Odiard
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
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Introduction to the list

2015-04-29 Thread Michaël Ohayon
Hello everyone,

My name is Michaël Ohayon.

I'm new to this list and I'm very glad to contribute to Sugar during the
Google Summer Of Code !

I'm a 4th year computer science student at Epitech Paris.

I'm fond of free software and had the opportunity to help the local
Ubuntu's community for years during install parties.

I heard about Sugar thanks to Lionel Laské.

I have met Lionel at Le Spot by working with him on innovative projects.
I had the chance to try the XO there.

I had already heard about OLPC before and was happy to find one XO inside
my school campus.

Few months later, I joined the Docker Paris Hackathon and had built
Sugarizer and Sugar containers (with graphical support for the Sugar one).

I attended a GSOC conference and OLPC France Sugar training camp to the
Nosy Komba volunteers.

That's basically how I got to GSOC.

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

I've also got my own XO today and will use it to explore Sugar more in
detail !

See you on IRC,

Best regards,
--
Michaël Ohayon
Manager de l'Innovation Cloud et Mobilité
Epitech Innovation Hub
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel