A Docker container for Code::Blocks
These instructions will cover usage information and for the Docker container.
In order to run this container you'll need Docker installed.
Pull the image from the Docker repository:
VERSION=$(curl --silent http://www.codeblocks.org/downloads/binaries/ | egrep -i -o "codeblocks_(2[0-9]\.[0-9]+)_amd64_stable.tar.xz" -o | head -n1 | egrep -o "(2[0-9]\.[0-9]+)")
docker pull dobolinux/codeblocks
docker tag dobolinux/codeblocks codeblocks
docker rmi dobolinux/codeblocks
Or build image from source:
git clone https://github.com/dobolinux/codeblocks.git
cd codeblocks
docker build -t codeblocks .
Start Code::Blocks:
docker container run -d --rm --privileged \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix \
-v codeblocks:/home/dev \
--network host \
codeblocks
DISPLAY
- the X display server that the GUI applications will connect to
/home/dev/
- workspace for all files saved
This project is licensed under the MIT License - see the LICENSE file for details