SugarOnDocker

From Sugar Labs
Jump to navigation Jump to search

Docker

Introduction

This page presents how to run Sugar with Docker.

You'll be able to run Sugar on your computer without having to install the Sugar environment.

Requirements : GNU/Linux, 64bits processor, Docker, Graphical Display.

Docker allows you to run programs using specific operating system onto every computer. You can run a Sugar container using Fedora onto your computer without having to install Fedora.

The guest operating system is isolated from the host. When running Sugar onto Docker, you won't have to install Sugar dependencies or to be onto the same OS.

It is container virtualisation, which is faster than processor virtualisation.

Use cases

Docker is great for TESTING / DEVELOPING purposes

It could be used to distribute Sugar but the XO specificities will strongly discourage this usage.

Pro / Cons

+ Docker will help you to easily try some activities if you haven't installed Sugar.

+ It's fast and won't install anything on your computer

- It needs to download a container image ~500mb once

- Won't allow to run every apps, and won't act exactly as the XO.

Run Sugar using Docker

First, install Docker. That's outside the scope of this page.

Second, there's a script to easily run Sugar. It supports data persistence and activity installation.

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

Usage

 git clone https://github.com/mikklfr/docker-sugar.git
 cd docker-sugar
 sh run.sh

demo-small.gif