<div dir="ltr">Yes, I'll add an option to enable using just a folder, it will be better that way.<br><br>I'm running this under <span class="" id=":1w8.1" tabindex="-1">ArchLinux</span>.<br><br>The docker-<span class="" id=":1w8.2" tabindex="-1">io</span> is the correct package, the another one is something not related at all. It's a dock applet <span class="" id=":1w8.3" tabindex="-1">systray</span> program : https://<span class="" id=":1w8.4" tabindex="-1">fedorahosted</span>.org/<span class="" id=":1w8.5" tabindex="-1">fpc</span>/ticket/341<br>Many <span class="" id=":1w8.6" tabindex="-1">distros</span> are getting into this naming problem.<br><br>So, you should remove docker and get docker-<span class="" id=":1w8.7" tabindex="-1">io</span>.<br>I think that the docker service will start automatically.<br><br>This docker recipe should work across distributions as I didn't used specific items.<br><br>I forgot to tell it but docker will only run on amd64 machines.<br><br>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 <span class="" id=":1w8.10" tabindex="-1">Dockerfile</span> located inside the <span class="" id=":1w8.11" tabindex="-1">github</span> <span class="" id=":1w8.12" tabindex="-1">repo</span>.<br>It will be cached and the next launches will be almost instant.<br><br>--<br><span class="" id=":1w8.13" tabindex="-1">Michaël</span> <span class="" id=":1w8.14" tabindex="-1">Ohayon</span><br>Manager <span class="" id=":1w8.15" tabindex="-1">de</span> <span class="" id=":1w8.16" tabindex="-1">l'Innovation</span> Cloud <span class="" id=":1w8.17" tabindex="-1">et</span> <span class="" id=":1w8.18" tabindex="-1">Mobilité</span><br><span class="" id=":1w8.19" tabindex="-1">Epitech</span> Innovation Hub<br><br>2015-05-11 23:44 GMT+02:00 Gonzalo <span class="" id=":1w8.20" tabindex="-1">Odiard</span> <<span class="" id=":1w8.21" tabindex="-1">godiard</span>@<span class="" id=":1w8.22" tabindex="-1">sugarlabs</span>.org>:<br>><br>> Maybe point to  directory where you have installed your activities?<br>> Or take it from a <span class="" id=":1w8.23" tabindex="-1">env</span> variable.<br>><br>> A few questions:<br>> What is your testing environment? <br>> I am looking at how to install docker in Fedora, and have different instructions <br>> depending on the version https://<span class="" id=":1w8.24" tabindex="-1">fedoraproject</span>.org/wiki/Docker<br>> I am using F21, should I remove docker and install docker-<span class="" id=":1w8.25" tabindex="-1">io</span>?<br>><br>> What about other distributions? The docker recipe works across <span class="" id=":1w8.26" tabindex="-1">distros</span><br>> or we need a different recipe for everyone?<br>><br>> Gonzalo <br>><br>> Gonzalo<br>><br>> On Mon, May 11, 2015 at 6:35 PM, <span class="" id=":1w8.27" tabindex="-1">Michaël</span> <span class="" id=":1w8.28" tabindex="-1">Ohayon</span> <<a href="mailto:mohayon75@gmail.com">mohayon75@gmail.com</a>> wrote:<br>>><br>>> Hi !<br>>><br>>> I've updated the script.<br>>> You can now start a sugar environment and provide activities folders !<br>>><br>>> https://<span class="" id=":1w8.29" tabindex="-1">github</span>.com/<span class="" id=":1w8.30" tabindex="-1">mikklfr</span>/docker-sugar<br>>><br>>> I've got two activities folders which I want to test : 2048.activity and <span class="" id=":1w8.31" tabindex="-1">Valorar</span>.activity.<br>>><br>>> I can run sugar and provide those activities by running the script like this : <br>>><br>>> $>sh run.sh 2048.activity <span class="" id=":1w8.32" tabindex="-1">Valorar</span>.activity<br>>><br>>> Sugar shows up and activities are available in the list.<br>>><br>>> You can edit the scripts from the host, they are synced with the docker container.<br>>><br>>> Maybe you have some specific topics I could look into to get something useful for your needs ?<br>>><br>>> --<br>>> <span class="" id=":1w8.33" tabindex="-1">Michaël</span> <span class="" id=":1w8.34" tabindex="-1">Ohayon</span><br>>> Manager <span class="" id=":1w8.35" tabindex="-1">de</span> <span class="" id=":1w8.36" tabindex="-1">l'Innovation</span> Cloud <span class="" id=":1w8.37" tabindex="-1">et</span> <span class="" id=":1w8.38" tabindex="-1">Mobilité</span><br>>> <span class="" id=":1w8.39" tabindex="-1">Epitech</span> Innovation Hub<br>>><br>>> 2015-05-11 18:26 GMT+02:00 <span class="" id=":1w8.40" tabindex="-1">Michaël</span> <span class="" id=":1w8.41" tabindex="-1">Ohayon</span> <<a href="mailto:mohayon75@gmail.com">mohayon75@gmail.com</a>>:<br>>>><br>>>> Hi,<br>>>><br>>>> I've just setup something to run sugar with docker.<br>>>><br>>>> It will work on GNU/Linux only with X11 and <span class="" id=":1w8.42" tabindex="-1">pulseaudio</span>.<br>>>><br>>>> I've published it on the docker registry and <span class="" id=":1w8.43" tabindex="-1">github</span>.<br>>>><br>>>> - https://<span class="" id=":1w8.44" tabindex="-1">github</span>.com/<span class="" id=":1w8.45" tabindex="-1">mikklfr</span>/docker-sugar<br>>>> - The docker image is <span class="" id=":1w8.46" tabindex="-1">mikkl</span>/sugar<br>>>><br>>>> It's kind of a <span class="" id=":1w8.47" tabindex="-1">poc</span> for now.<br>>>> I'll setup a script to test an activity asap.<br>>>><br>>>> If you want to test it :<br>>>><br>>>> - Download and start docker service<br>>>> - Run the .sh script : https://<span class="" id=":1w8.48" tabindex="-1">github</span>.com/<span class="" id=":1w8.49" tabindex="-1">mikklfr</span>/docker-sugar/blob/master/run.sh<br>>>><br>>>> I'll give updates :)<br>>>><br>>>><br>>>> --<br>>>> <span class="" id=":1w8.50" tabindex="-1">Michaël</span> <span class="" id=":1w8.51" tabindex="-1">Ohayon</span><br>>>> Manager <span class="" id=":1w8.52" tabindex="-1">de</span> <span class="" id=":1w8.53" tabindex="-1">l'Innovation</span> Cloud <span class="" id=":1w8.54" tabindex="-1">et</span> <span class="" id=":1w8.55" tabindex="-1">Mobilité</span><br>>>> <span class="" id=":1w8.56" tabindex="-1">Epitech</span> Innovation Hub<br>>>><br>>>> 2015-05-03 6:17 GMT+02:00 Gonzalo <span class="" id=":1w8.57" tabindex="-1">Odiard</span> <<span class="" id=":1w8.58" tabindex="-1">godiard</span>@<span class="" id=":1w8.59" tabindex="-1">sugarlabs</span>.org>:<br>>>>><br>>>>> Nice.<br>>>>> And you have a docker recipe to create a sugar development environment?<br>>>>> Can be used in any operating system? <br>>>>> I am asking because we are thinking in how make easier develop in different <span class="" id=":1w8.60" tabindex="-1">os</span>,<br>>>>> and also how distribute Sugar to users in other platforms.<br>>>>><br>>>>> Gonzalo <br>>>>><br>>>>> On Fri, May 1, 2015 at 1:23 PM, <span class="" id=":1w8.61" tabindex="-1">Michaël</span> <span class="" id=":1w8.62" tabindex="-1">Ohayon</span> <<a href="mailto:mohayon75@gmail.com">mohayon75@gmail.com</a>> wrote:<br>>>>>><br>>>>>> Thanks,<br>>>>>><br>>>>>> Docker is a great tool for booting up a container using <span class="" id=":1w8.63" tabindex="-1">LXC</span>, you can refer to it as a very light <span class="" id=":1w8.64" tabindex="-1">vm</span> focused on a specific task.<br>>>>>> You can script in minutes a way to boot a program by <span class="" id=":1w8.65" tabindex="-1">targetting</span> a specific OS from any GNU/Linux<br>>>>>><br>>>>>> For instance here is a <span class="" id=":1w8.66" tabindex="-1">Dockerfile</span> to <br>>>>>> - <span class="" id=":1w8.67" tabindex="-1">bootup</span> an <span class="" id=":1w8.68" tabindex="-1">archlinux</span> container<br>>>>>> - upgrading packages<br>>>>>> - copy a <span class="" id=":1w8.69" tabindex="-1">nginx</span> <span class="" id=":1w8.70" tabindex="-1">conf</span> file<br>>>>>> - clone <span class="" id=":1w8.71" tabindex="-1">sugarizer</span> repository<br>>>>>> - expose <span class="" id=":1w8.72" tabindex="-1">nginx</span> to port 80 on the host<br>>>>>><br>>>>>> [<span class="" id=":1w8.73" tabindex="-1">ohayon</span>_m@<span class="" id=":1w8.74" tabindex="-1">ohayon</span>-m-<span class="" id=":1w8.75" tabindex="-1">thinkpad</span> /<span class="" id=":1w8.76" tabindex="-1">tmp</span>]$ cat <span class="" id=":1w8.77" tabindex="-1">Dockerfile</span> <br>>>>>> FROM     base/<span class="" id=":1w8.78" tabindex="-1">archlinux</span>:latest<br>>>>>><br>>>>>> RUN yes | <span class="" id=":1w8.79" tabindex="-1">pacman</span> -<span class="" id=":1w8.80" tabindex="-1">Syy</span><br>>>>>> RUN yes | <span class="" id=":1w8.81" tabindex="-1">pacman</span> -S <span class="" id=":1w8.82" tabindex="-1">gcc</span> <span class="" id=":1w8.83" tabindex="-1">nodejs</span> <span class="" id=":1w8.84" tabindex="-1">openssh</span> <span class="" id=":1w8.85" tabindex="-1">mongodb</span> supervisor <span class="" id=":1w8.86" tabindex="-1">nginx</span> git<br>>>>>><br>>>>>> COPY <span class="" id=":1w8.87" tabindex="-1">nginx</span>.<span class="" id=":1w8.88" tabindex="-1">conf</span> /etc/<span class="" id=":1w8.89" tabindex="-1">nginx</span>/<span class="" id=":1w8.90" tabindex="-1">nginx</span>.<span class="" id=":1w8.91" tabindex="-1">conf</span><br>>>>>><br>>>>>> RUN <span class="" id=":1w8.92" tabindex="-1">cd</span> /opt; git clone https://<span class="" id=":1w8.93" tabindex="-1">github</span>.com/<span class="" id=":1w8.94" tabindex="-1">llaske</span>/<span class="" id=":1w8.95" tabindex="-1">sugarizer</span>.git<br>>>>>> RUN <span class="" id=":1w8.96" tabindex="-1">cd</span> /opt/<span class="" id=":1w8.97" tabindex="-1">sugarizer</span>/server; <span class="" id=":1w8.98" tabindex="-1">npm</span> install<br>>>>>> RUN <span class="" id=":1w8.99" tabindex="-1">mkdir</span> /opt/<span class="" id=":1w8.100" tabindex="-1">sugarizer</span>/db<br>>>>>><br>>>>>> EXPOSE 80<br>>>>>><br>>>>>> <span class="" id=":1w8.101" tabindex="-1">CMD</span> ["/<span class="" id=":1w8.102" tabindex="-1">usr</span>/bin/<span class="" id=":1w8.103" tabindex="-1">nginx</span>"]<br>>>>>> [<span class="" id=":1w8.104" tabindex="-1">ohayon</span>_m@<span class="" id=":1w8.105" tabindex="-1">ohayon</span>-m-<span class="" id=":1w8.106" tabindex="-1">thinkpad</span> /<span class="" id=":1w8.107" tabindex="-1">tmp</span>]$<br>>>>>><br>>>>>> Each modification of a container is handled like a git commit so you can rollback at any time and launch specific snapshots.<br>>>>>> It has a "cache system". It will <span class="" id=":1w8.108" tabindex="-1">bootup</span> almost instantly after the container is build.<br>>>>>><br>>>>>> I see it like a great tool to setup an <span class="" id=":1w8.109" tabindex="-1">env</span> 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.<br>>>>>> It can be used in production and manage/scale with the new tools : Docker Swarm and Docker Compose<br>>>>>><br>>>>>> Hope you'll find it <span class="" id=":1w8.110" tabindex="-1">usefull</span> !<br>>>>>><br>>>>>><br>>>>>><br>>>>>> --<br>>>>>> <span class="" id=":1w8.111" tabindex="-1">Michaël</span> <span class="" id=":1w8.112" tabindex="-1">Ohayon</span><br>>>>>> Manager <span class="" id=":1w8.113" tabindex="-1">de</span> <span class="" id=":1w8.114" tabindex="-1">l'Innovation</span> Cloud <span class="" id=":1w8.115" tabindex="-1">et</span> <span class="" id=":1w8.116" tabindex="-1">Mobilité</span><br>>>>>> <span class="" id=":1w8.117" tabindex="-1">Epitech</span> Innovation Hub<br>>>>>><br>>>>>> 2015-04-30 21:00 GMT+02:00 Gonzalo <span class="" id=":1w8.118" tabindex="-1">Odiard</span> <<span class="" id=":1w8.119" tabindex="-1">godiard</span>@<span class="" id=":1w8.120" tabindex="-1">sugarlabs</span>.org>:<br>>>>>>><br>>>>>>> Hi <span class="" id=":1w8.121" tabindex="-1">Michaël</span>, <br>>>>>>> Welcome!<br>>>>>>><br>>>>>>>> Few months later, I joined the Docker Paris <span class="" id=":1w8.122" tabindex="-1">Hackathon</span> and had built <span class="" id=":1w8.123" tabindex="-1">Sugarizer</span> and Sugar containers (with graphical support for the Sugar one).<br>>>>>>>><br>>>>>>><br>>>>>>> Interesting. I don't know more from Docker than the sporadic news,<br>>>>>>> could explain what can be done with the Sugar container? <br>>>>>>><br>>>>>>>><br>>>>>>>> My proposal is the <span class="" id=":1w8.124" tabindex="-1">SugarWeb</span> Basic <span class="" id=":1w8.125" tabindex="-1">ActivitySet</span> which is a <span class="" id=":1w8.126" tabindex="-1">writting</span> of some essential apps for the web version of Sugar.<br>>>>>>>>  <br>>>>>>>><br>>>>>>>> Here's the link to my <span class="" id=":1w8.127" tabindex="-1">GSOC</span> proposal : <a href="http://wiki">http://wiki</a>.<span class="" id=":1w8.128" tabindex="-1">sugarlabs</span>.org/go/Summer_of_Code/2015/<span class="" id=":1w8.129" tabindex="-1">mohayon</span>.<span class="" id=":1w8.130" tabindex="-1">SugarWebBasicActivitySet</span><br>>>>>>>><br>>>>>>><br>>>>>>> Great. Keep connected :)<br>>>>>>><br>>>>>>> Gonzalo<br>>>>>><br>>>>>><br>>>>><br>>>>><br>>>>><br>>>>> -- <br>>>>> Gonzalo <span class="" id=":1w8.131" tabindex="-1">Odiard</span><br>>>>><br>>>>> <span class="" id=":1w8.132" tabindex="-1">SugarLabs</span> - Software for children learning <br>>>><br>>>><br>>><br>><br>><br>><br>> -- <br>> Gonzalo <span class="" id=":1w8.133" tabindex="-1">Odiard</span><br>><br>> <span class="" id=":1w8.134" tabindex="-1">SugarLabs</span> - Software for children learning <br><br></div>