Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.16 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.16 KB

Scratch 2 Docker/Singularity Container

Introduction

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.

Usage

Tested on CentOS 7. Doesn't require Docker to be installed on your machine.

  1. Install Singularity on your machine

  2. Download Singularity bootstrap definition:

     curl -O https://raw.githubusercontent.com/dtschan/scratch2-singularity/master/scratch2.def
    
  3. Create a Singularity image for Scratch 2:

     sudo singularity create --size 2048 scratch2.img
    
  4. Import Docker image into Singularity image:

     sudo singularity bootstrap scratch2.img scratch2.def
    
  5. Run Scratch 2:

     singularity run scratch2.img