Public | Automated Build

Last pushed: 3 days ago
Short Description
A containerized version of the Python IDE Thonny http://thonny.cs.ut.ee/
Full Description

Description

A containerized version of the Python IDE Thonny http://thonny.cs.ut.ee/

Build

You can either build from source, or pull latest version from dockerhub.

Download from dockerhub

docker pull starfox/thonny

Build from source

git clone https://bitbucket.org/starfox899/thonny.git
cd thonny
docker build -t starfox/thonny .

Run

Run in one-time container

Running thonny needs access to local XServer

xhost +
docker run -it --rm -e DISPLAY=$DISPLAY  -v /tmp/.X11-unix:/tmp/.X11-unix starfox/thonny 
xhost -

Beware: Running thonny this way will remove all things you have created in Thonny, once it is closed. If you want to persist your changes, make sure to use a persisted container.

Run as a persisted container

Create persisted container named 'thonny'

Create a named docker container, which will keep the changes and files you create using thonny inside the container.

# in case you have an existing container named 'thonny', you need to cleanup first. Attention: this will delete everything stored in that container!
# docker rm thonny
docker create -it -e DISPLAY=$DISPLAY  -v /tmp/.X11-unix:/tmp/.X11-unix --name thonny starfox/thonny

Start persisted container

xhost +
docker start thonny
xhost -

Open issues

  1. Get rid of xhost + using this technique http://stackoverflow.com/a/25280523/2161065
Docker Pull Command
Owner
starfox
Source Repository

Comments (0)