Scratch is a popular visual programming language for teaching programming to kids. Unfortunately the offline version of Scratch 2, required for robotic projects, is based on Adobe AIR. Making it increasingly difficult to install Scratch 2 on modern Linux systems.
This repository provides a Dockerfile to build a container allowing Scratch 2 to be used on modern Linux systems with the help of Singularity.
Tested on CentOS 7. Doesn't require Docker to be installed on your machine.
-
Install Singularity on your machine
-
Download Singularity bootstrap definition:
curl -O https://raw.githubusercontent.com/dtschan/scratch2-singularity/master/scratch2.def
-
Create a Singularity image for Scratch 2:
sudo singularity create --size 2048 scratch2.img
-
Import Docker image into Singularity image:
sudo singularity bootstrap scratch2.img scratch2.def
-
Run Scratch 2:
singularity run scratch2.img