Skip to content

🐳 Docker container containing all needed Linux C/C++ build tools

License

Notifications You must be signed in to change notification settings

WNProject/DockerBuildLinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Build Linux

License CI

Docker container containing all needed Linux C/C++ build tools. Each container will contain only one version of either GCC or Clang but will contain all additional libraries and build tools needed (Python 3, Ninja, etc). Currently we only support x86-64 compilers.

Usage

There are 2 ways to use this container Interactive and Command mode.

Interactive

This will drop you into an interactive bash session.

docker run -it -v /src:/src build-linux

Command

This will run the supplied command directly.

docker run -v /src:/src build-linux [command]

Building

docker build . -t build-linux \
    --build-arg COMPILER_PACKAGES='[clang*|gcc* g++*]' \
    --build-arg C_COMPILER_NAME='[clang*|gcc*]' \
    --build-arg CPP_COMPILER_NAME='[clang++*|g++*]'

Currently only version 9, 10 and 11 of GCC and 9, 10, 11 and 12 of Clang are supported.

Example

docker build . -t build-linux \
    --build-arg COMPILER_PACKAGES='gcc-10 g++-10' \
    --build-arg C_COMPILER_NAME='gcc-10' \
    --build-arg CPP_COMPILER_NAME='g++-10'

About

🐳 Docker container containing all needed Linux C/C++ build tools

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •