Skip to content

andrebossi/codeblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Code::Blocks IDE

GitHub GitHub Workflow Status

A Docker container for Code::Blocks

1.1. Getting Started

These instructions will cover usage information and for the Docker container.

1.1.1. Prerequisites

In order to run this container you'll need Docker installed.

1.1.2. Installing

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 .

1.1.3. Usage

1.1.3.1. Run

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

1.1.3.2. Environment Variables

  • DISPLAY - the X display server that the GUI applications will connect to

1.1.3.3. Volumes

  • /home/dev/ - workspace for all files saved

2. License

This project is licensed under the MIT License - see the LICENSE file for details

Releases

No releases published

Packages

No packages published